Commit 333c38fbacdf486c6722b40c8ae56ad3cae0a6e6
1 parent
1c9d492a
Set fieldset to incomplete on storing a new relationship.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3807 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
0 deletions
presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/conditional/ajaxSimpleConditionals.php
| @@ -28,6 +28,7 @@ class AjaxConditionalAdminDispatcher extends KTStandardDispatcher { | @@ -28,6 +28,7 @@ class AjaxConditionalAdminDispatcher extends KTStandardDispatcher { | ||
| 28 | // handle the store, and DON'T give a 500 ;) does not act on the information. | 28 | // handle the store, and DON'T give a 500 ;) does not act on the information. |
| 29 | global $default; | 29 | global $default; |
| 30 | $default->log->error(http_build_query($_REQUEST)); | 30 | $default->log->error(http_build_query($_REQUEST)); |
| 31 | + $iFieldsetId = KTUtil::arrayGet($_REQUEST, 'fieldset_id'); | ||
| 31 | $parent_field = KTUtil::arrayGet($_REQUEST, 'parent_field'); | 32 | $parent_field = KTUtil::arrayGet($_REQUEST, 'parent_field'); |
| 32 | $parent_lookup = KTUtil::arrayGet($_REQUEST, 'parent_lookup'); | 33 | $parent_lookup = KTUtil::arrayGet($_REQUEST, 'parent_lookup'); |
| 33 | $child_lookups = KTUtil::arrayGet($_REQUEST, 'child_lookups'); | 34 | $child_lookups = KTUtil::arrayGet($_REQUEST, 'child_lookups'); |
| @@ -39,6 +40,10 @@ class AjaxConditionalAdminDispatcher extends KTStandardDispatcher { | @@ -39,6 +40,10 @@ class AjaxConditionalAdminDispatcher extends KTStandardDispatcher { | ||
| 39 | // field_id:[lookup_id, lookup_id], | 40 | // field_id:[lookup_id, lookup_id], |
| 40 | // } | 41 | // } |
| 41 | 42 | ||
| 43 | + $oFieldset =& KTFieldset::get($iFieldsetId); | ||
| 44 | + $oFieldset->setIsComplete(false); | ||
| 45 | + $oFieldset->update(); | ||
| 46 | + | ||
| 42 | $oParentInstance = KTMetadataUtil::getOrCreateValueInstanceForLookup($parent_lookup); | 47 | $oParentInstance = KTMetadataUtil::getOrCreateValueInstanceForLookup($parent_lookup); |
| 43 | $iBehaviourId = $oParentInstance->getBehaviourId(); | 48 | $iBehaviourId = $oParentInstance->getBehaviourId(); |
| 44 | $oParentMetadata =& MetaData::get($oParentInstance->getFieldValueId()); | 49 | $oParentMetadata =& MetaData::get($oParentInstance->getFieldValueId()); |