From 1466ed9061c90f1d1dd40da319c15a11de111fdf Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Tue, 18 Oct 2005 14:27:03 +0000 Subject: [PATCH] Clear the existing values for the behaviour before storing the current values. --- presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/conditional/ajaxSimpleConditionals.php | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/conditional/ajaxSimpleConditionals.php b/presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/conditional/ajaxSimpleConditionals.php index 142ae0c..056354f 100644 --- a/presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/conditional/ajaxSimpleConditionals.php +++ b/presentation/lookAndFeel/knowledgeTree/administration/docfieldmanagement/conditional/ajaxSimpleConditionals.php @@ -67,6 +67,12 @@ class AjaxConditionalAdminDispatcher extends KTStandardDispatcher { $sTable = KTUtil::getTableName('field_behaviour_options'); $aOptions = array('noid' => true); + $aQuery = array( + "DELETE FROM $sTable WHERE behaviour_id = ?", + array($iBehaviourId), + ); + $res = DBUtil::runQuery($aQuery); + foreach ($child_lookups as $iFieldId => $aLookups) { foreach ($aLookups as $iLookupId) { $oValueInstance =& KTMetadataUtil::getOrCreateValueInstanceForLookup($iLookupId); -- libgit2 0.21.4