Commit 6a45144001b2eca4f9d6d1d2fd2fff80597e825b

Authored by Neil Blakey-Milner
1 parent 820506e8

Give the display/human name for the field behaviour as well as the

namespace name.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3870 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/metadata/metadatautil.inc.php
... ... @@ -362,6 +362,7 @@ class KTMetadataUtil {
362 362 $GLOBALS['default']->log->debug("Checking behaviour id: " . $iBehaviourId);
363 363 $oBehaviour =& KTFieldBehaviour::get($iBehaviourId);
364 364 $sBehaviourName = $oBehaviour->getName();
  365 + $sBehaviourHumanName = $oBehaviour->getHumanName();
365 366 $iParentFieldId = $oBehaviour->getFieldId();
366 367 $GLOBALS['default']->log->debug(" field is " . $iParentFieldId);
367 368 $aNextFields = KTMetadataUtil::getChildFieldIds($iParentFieldId);
... ... @@ -380,7 +381,7 @@ class KTMetadataUtil {
380 381 $GLOBALS['default']->log->debug(" field $iFieldId is not included, failing");
381 382 $oChildField =& DocumentField::get($iFieldId);
382 383 $sChildFieldName = $oChildField->getName();
383   - return PEAR::raiseError("Child field $sChildFieldName of parent field $sParentFieldName has no selectable values in behaviour $sBehaviourName");
  384 + return PEAR::raiseError("Child field $sChildFieldName of parent field $sParentFieldName has no selectable values in behaviour $sBehaviourHumanName ($sBehaviourName)");
384 385 }
385 386 }
386 387 }
... ...