From 49c0dcfb9a0eec7e7ed649058c3673bc501adf3c Mon Sep 17 00:00:00 2001 From: kevin_fourie Date: Tue, 19 Jun 2007 14:55:29 +0000 Subject: [PATCH] KTS-2088 "The " in the name of a Document Type, Transition or State does not reflect in Edit mode" Fixed. --- plugins/ktcore/admin/documentTypes.php | 3 +++ templates/ktcore/documenttypes/edit.smarty | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/ktcore/admin/documentTypes.php b/plugins/ktcore/admin/documentTypes.php index 310a945..ad5e920 100755 --- a/plugins/ktcore/admin/documentTypes.php +++ b/plugins/ktcore/admin/documentTypes.php @@ -39,6 +39,8 @@ require_once(KT_LIB_DIR . '/metadata/metadatautil.inc.php'); require_once(KT_LIB_DIR . "/widgets/fieldWidgets.php"); require_once(KT_LIB_DIR . "/templating/kt3template.inc.php"); +require_once(KT_LIB_DIR . "/util/sanitize.inc"); + class KTDocumentTypeDispatcher extends KTAdminDispatcher { var $sHelpPage = 'ktcore/admin/document types.html'; @@ -159,6 +161,7 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { $oTemplate->setData(array( 'context' => $this, 'oDocumentType' => $oDocumentType, + 'sDocTypeName' => sanitizeForHTML($oDocumentType->getName()), 'aCurrentFieldsets' => $aCurrentFieldsets, 'bAnyFieldsets' => count($aAvailableFieldsets) > 0, 'bAvailableFieldsets' => count($vocab) > 0, diff --git a/templates/ktcore/documenttypes/edit.smarty b/templates/ktcore/documenttypes/edit.smarty index b46227d..13000a1 100644 --- a/templates/ktcore/documenttypes/edit.smarty +++ b/templates/ktcore/documenttypes/edit.smarty @@ -3,7 +3,7 @@
- +
-- libgit2 0.21.4