mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-19 06:53:53 +01:00
LSimport: fix data removing on LSobject import
This bug affect import with modify enabled and when some attributes are present in modify form, but not in the ioFormat used for import.
This commit is contained in:
parent
f61a8b7c71
commit
499ff808f4
1 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ class LSimport {
|
||||||
// Set form data from inputed data
|
// Set form data from inputed data
|
||||||
if ($form -> setPostData($objData,true)) {
|
if ($form -> setPostData($objData,true)) {
|
||||||
// Validate form
|
// Validate form
|
||||||
if ($form -> validate()) {
|
if ($form -> validate(true)) {
|
||||||
// Validate data (just validate)
|
// Validate data (just validate)
|
||||||
if ($object -> updateData('create',True)) {
|
if ($object -> updateData('create',True)) {
|
||||||
LSdebug('Data is correct, retreive object DN');
|
LSdebug('Data is correct, retreive object DN');
|
||||||
|
@ -209,7 +209,7 @@ class LSimport {
|
||||||
// Set form data from inputed data
|
// Set form data from inputed data
|
||||||
if ($form -> setPostData($objData,true)) {
|
if ($form -> setPostData($objData,true)) {
|
||||||
// Validate form
|
// Validate form
|
||||||
if ($form -> validate()) {
|
if ($form -> validate(true)) {
|
||||||
// Update data on LDAP server
|
// Update data on LDAP server
|
||||||
if ($data['justTry'] || $object -> updateData('modify')) {
|
if ($data['justTry'] || $object -> updateData('modify')) {
|
||||||
LSdebug('Object '.$object -> getDn().' updated');
|
LSdebug('Object '.$object -> getDn().' updated');
|
||||||
|
|
Loading…
Reference in a new issue