[evolvis-commits] r18235: _which_ field name does already exist?

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Apr 5 17:45:17 CEST 2012


Author: mirabilos
Date: 2012-04-05 17:45:16 +0200 (Thu, 05 Apr 2012)
New Revision: 18235

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactExtraField.class.php
Log:
_which_ field name does already exist?


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactExtraField.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactExtraField.class.php	2012-04-05 15:45:03 UTC (rev 18234)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactExtraField.class.php	2012-04-05 15:45:16 UTC (rev 18235)
@@ -121,7 +121,7 @@
 					array($name,
 					      $this->ArtifactType->getID()));
 		if (db_numrows($res) > 0) {
-			$this->setError(_('Field name already exists'));
+			$this->setError(sprintf(_('Field name "%s" already exists'), $name));
 			return false;
 		}
 		if ($field_type == ARTIFACT_EXTRAFIELDTYPE_TEXT || $field_type == ARTIFACT_EXTRAFIELDTYPE_INTEGER) {
@@ -384,7 +384,7 @@
 				$this->ArtifactType->getID(),
 				$this->getID()));
 		if (db_numrows($res) > 0) {
-			$this->setError(_('Field name already exists'));
+			$this->setError(sprintf(_('Field name "%s" already exists'), $name));
 			return false;
 		}
 		if ($is_required) {



More information about the evolvis-commits mailing list