BUG 9336 Hidden field: Mode Edit/View SOLVED

- This field is not need in the form.
- this field was placed with a defaultvalue of edit.
This commit is contained in:
Marco Antonio Nina
2012-06-28 18:30:08 -04:00
parent f98481c344
commit df7e7b6b92
2 changed files with 5 additions and 6 deletions

View File

@@ -143,8 +143,10 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
$attributes = $_POST['form']; $attributes = $_POST['form'];
if (isset($attributes['HINT'])) {
$attributes['HINT'] = addslashes($attributes['HINT']); $attributes['HINT'] = addslashes($attributes['HINT']);
$attributes['HINT'] = htmlspecialchars($attributes['HINT'], ENT_QUOTES, "UTF-8"); $attributes['HINT'] = htmlspecialchars($attributes['HINT'], ENT_QUOTES, "UTF-8");
}
if (isset($attributes['CODE'])) $attributes['XMLNODE_VALUE'] = ($attributes['CODE']); if (isset($attributes['CODE'])) $attributes['XMLNODE_VALUE'] = ($attributes['CODE']);

View File

@@ -20,10 +20,7 @@ SELECT XMLNODE_NAME, TYPE FROM dynaForm WHERE XMLNODE_NAME = @@PME_XMLNODE_NAME
<en>Default Value</en> <en>Default Value</en>
</PME_DEFAULTVALUE> </PME_DEFAULTVALUE>
<PME_MODE type="hidden" defaultvalue="edit">
<PME_MODE type="dropdown" defaultvalue="edit">
<en>Mode<option name="edit">Edit</option><option name="view">View</option></en>
</PME_MODE> </PME_MODE>
<PME_SUBTITLE2 type="title" enableHTML="1"> <PME_SUBTITLE2 type="title" enableHTML="1">