mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Admin-ui: Prevent 'options' header column from displaying when not found in $fields array.
This commit is contained in:
@@ -4133,9 +4133,10 @@ class e_form
|
||||
if(!varset($fromval)){ $fromval = 0; }
|
||||
|
||||
$ascdesc = (varset($ascdesc) == 'desc') ? 'asc' : 'desc';
|
||||
|
||||
foreach($fieldarray as $key=>$val)
|
||||
{
|
||||
if ((in_array($key, $columnPref) || $key == 'options' || (vartrue($val['forced']))) && !vartrue($val['nolist']))
|
||||
if ((in_array($key, $columnPref) || ($key === 'options' && isset($val['title'])) || (vartrue($val['forced']))) && !vartrue($val['nolist']))
|
||||
{
|
||||
$cl = (vartrue($val['thclass'])) ? " class='".$val['thclass']."'" : "";
|
||||
$text .= "
|
||||
@@ -4153,8 +4154,8 @@ class e_form
|
||||
$text .= (vartrue($val['url'])) ? "<a href='".str_replace(array('&', '&'), array('&', '&'),$val['url'])."'>" : ""; // Really this column-sorting link should be auto-generated, or be autocreated via unobtrusive js.
|
||||
$text .= defset($val['title'], $val['title']);
|
||||
$text .= ($val['url']) ? "</a>" : "";
|
||||
$text .= ($key == "options" && !vartrue($val['noselector'])) ? $this->columnSelector($fieldarray, $columnPref) : "";
|
||||
$text .= ($key == "checkboxes") ? $this->checkbox_toggle('e-column-toggle', vartrue($val['toggle'], 'multiselect')) : "";
|
||||
$text .= ($key === "options" && !vartrue($val['noselector'])) ? $this->columnSelector($fieldarray, $columnPref) : "";
|
||||
$text .= ($key === "checkboxes") ? $this->checkbox_toggle('e-column-toggle', vartrue($val['toggle'], 'multiselect')) : "";
|
||||
|
||||
|
||||
$text .= "
|
||||
|
Reference in New Issue
Block a user