Commit 498976cb7c4a867ccf915042079fb63150a25902

Authored by bshuttle
1 parent 5063b89e

cleaned up edit.php fix for 1021 a bit


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5562 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 1 deletions
edit.php
... ... @@ -342,7 +342,8 @@ class KTEditDocumentDispatcher extends KTStandardDispatcher {
342 342  
343 343 foreach ($current_md as $oFieldLink) {
344 344 // we mustn't copy "old" values for conditional fieldsets. it breaks unset-set fields.
345   - if (!$condy_fs[$field_values[$oFieldLink->getDocumentFieldID()][0]->getParentFieldsetId()]) {
  345 + $oField = $field_values[$oFieldLink->getDocumentFieldID()][0];
  346 + if (!$condy_fs[$oField->getParentFieldsetId()]) {
346 347 $field_values[$oFieldLink->getDocumentFieldID()][1] = $oFieldLink->getValue();
347 348 }
348 349  
... ...