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 | 28 | // handle the store, and DON'T give a 500 ;) does not act on the information. |
| 29 | 29 | global $default; |
| 30 | 30 | $default->log->error(http_build_query($_REQUEST)); |
| 31 | + $iFieldsetId = KTUtil::arrayGet($_REQUEST, 'fieldset_id'); | |
| 31 | 32 | $parent_field = KTUtil::arrayGet($_REQUEST, 'parent_field'); |
| 32 | 33 | $parent_lookup = KTUtil::arrayGet($_REQUEST, 'parent_lookup'); |
| 33 | 34 | $child_lookups = KTUtil::arrayGet($_REQUEST, 'child_lookups'); |
| ... | ... | @@ -39,6 +40,10 @@ class AjaxConditionalAdminDispatcher extends KTStandardDispatcher { |
| 39 | 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 | 47 | $oParentInstance = KTMetadataUtil::getOrCreateValueInstanceForLookup($parent_lookup); |
| 43 | 48 | $iBehaviourId = $oParentInstance->getBehaviourId(); |
| 44 | 49 | $oParentMetadata =& MetaData::get($oParentInstance->getFieldValueId()); | ... | ... |