1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 15:16:30 +02:00

fields of 'method' types now are forced thus always rendered on admin UI list (no checks against model values anymore)

This commit is contained in:
secretr
2012-01-12 11:44:49 +00:00
parent 14261a773e
commit 9863be3a7a

View File

@@ -2,7 +2,7 @@
/* /*
* e107 website system * e107 website system
* *
* Copyright (C) 2008-2009 e107 Inc (e107.org) * Copyright (C) 2008-2012 e107 Inc (e107.org)
* Released under the terms and conditions of the * Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
* *
@@ -14,8 +14,14 @@
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
//FIXME hardcoded text
/** /**
*
* @package e107
* @subpackage handlers
* @version $Id$
* @todo hardcoded text
*
* Automate Form fields creation. Produced markup is following e107 CSS/XHTML standards * Automate Form fields creation. Produced markup is following e107 CSS/XHTML standards
* If options argument is omitted, default values will be used (which OK most of the time) * If options argument is omitted, default values will be used (which OK most of the time)
* Options are intended to handle some very special cases. * Options are intended to handle some very special cases.
@@ -1142,13 +1148,13 @@ class e_form
$fieldvalues[$data['alias']] = $fieldvalues[$data['field']]; $fieldvalues[$data['alias']] = $fieldvalues[$data['field']];
$field = $data['alias']; $field = $data['alias'];
} }
//Not found //Not found
if((!varset($data['forced']) && !in_array($field, $currentlist)) || varset($data['nolist'])) if((!varset($data['forced']) && !in_array($field, $currentlist)) || varset($data['nolist']))
{ {
continue; continue;
} }
elseif(!$data['forced'] && !isset($fieldvalues[$field])) elseif($data['type'] != 'method' && !$data['forced'] && !isset($fieldvalues[$field]))
{ {
$ret .= " $ret .= "
<td> <td>