mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Fixed duplicate and blank entries in field selector.
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/plugin.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/plugin.php,v $
|
||||||
| $Revision: 1.46 $
|
| $Revision: 1.47 $
|
||||||
| $Date: 2009-09-23 23:18:13 $
|
| $Date: 2009-09-25 02:02:38 $
|
||||||
| $Author: e107coders $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -90,8 +90,9 @@ class pluginManager{
|
|||||||
"plugin_description" => array("title" => EPL_ADLAN_14, "type"=>"text", "width" => "auto", "thclass" => "middle center", "url" => ""),
|
"plugin_description" => array("title" => EPL_ADLAN_14, "type"=>"text", "width" => "auto", "thclass" => "middle center", "url" => ""),
|
||||||
"plugin_compatible" => array("title" => EPL_ADLAN_13, "type"=>"text", "width" => "auto", "thclass" => "middle", "url" => ""),
|
"plugin_compatible" => array("title" => EPL_ADLAN_13, "type"=>"text", "width" => "auto", "thclass" => "middle", "url" => ""),
|
||||||
"plugin_compliant" => array("title" => EPL_ADLAN_81, "type"=>"text", "width" => "5%", "thclass" => "middle center", "url" => ""),
|
"plugin_compliant" => array("title" => EPL_ADLAN_81, "type"=>"text", "width" => "5%", "thclass" => "middle center", "url" => ""),
|
||||||
"plugin_release" => array("title" => EPL_ADLAN_81, "type"=>"text", "width" => "5%", "thclass" => "middle center", "url" => ""),
|
// "plugin_release" => array("title" => EPL_ADLAN_81, "type"=>"text", "width" => "5%", "thclass" => "middle center", "url" => ""),
|
||||||
"options" => array("title" => LAN_OPTIONS, "width" => "15%", "thclass" => "middle center last", "url" => "")
|
"options" => array("title" => LAN_OPTIONS, 'forced'=>TRUE, "width" => "15%", "thclass" => "middle center last", "url" => ""),
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@@ -119,6 +120,7 @@ class pluginManager{
|
|||||||
|
|
||||||
function pluginObserver()
|
function pluginObserver()
|
||||||
{
|
{
|
||||||
|
|
||||||
global $user_pref,$admin_log;
|
global $user_pref,$admin_log;
|
||||||
if (isset($_POST['upload']))
|
if (isset($_POST['upload']))
|
||||||
{
|
{
|
||||||
@@ -177,17 +179,19 @@ class pluginManager{
|
|||||||
}
|
}
|
||||||
$this -> action = "installed";
|
$this -> action = "installed";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->action != 'avail')
|
if($this->action != 'avail' && varset($this->fields['plugin_checkboxes']))
|
||||||
{
|
{
|
||||||
unset($this-> fields['plugin_checkboxes']);
|
$this->fields['plugin_checkboxes'] = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->action !='upload' && $this->action !='uninstall')
|
if($this->action !='upload' && $this->action !='uninstall')
|
||||||
{
|
{
|
||||||
$this -> pluginRenderList();
|
$this -> pluginRenderList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function pluginUninstall()
|
function pluginUninstall()
|
||||||
@@ -665,7 +669,7 @@ class pluginManager{
|
|||||||
{
|
{
|
||||||
|
|
||||||
global $plugin, $frm;
|
global $plugin, $frm;
|
||||||
$e107 = &e107::getInstance();
|
$e107 = e107::getInstance();
|
||||||
|
|
||||||
if($this->action == "" || $this->action == "installed")
|
if($this->action == "" || $this->action == "installed")
|
||||||
{
|
{
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
* Form Handler
|
* Form Handler
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
|
||||||
* $Revision: 1.44 $
|
* $Revision: 1.45 $
|
||||||
* $Date: 2009-09-22 15:42:27 $
|
* $Date: 2009-09-25 02:02:38 $
|
||||||
* $Author: e107coders $
|
* $Author: e107coders $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -640,12 +640,13 @@ class e_form
|
|||||||
|
|
||||||
function columnSelector($columnsArray,$columnsDefault='',$id='column_options')
|
function columnSelector($columnsArray,$columnsDefault='',$id='column_options')
|
||||||
{
|
{
|
||||||
|
$columnsArray = array_filter($columnsArray);
|
||||||
$text = "<div style='position:relative;float:right;'>
|
$text = "<div style='position:relative;float:right;'>
|
||||||
<a href='#".$id."' class='e-show-if-js e-expandit' title='Click to select columns to display'>
|
<a href='#".$id."' class='e-show-if-js e-expandit' title='Click to select columns to display'>
|
||||||
<img class='middle' src='".e_IMAGE_ABS."admin_images/select_columns_16.png' alt='select columns' /></a>
|
<img class='middle' src='".e_IMAGE_ABS."admin_images/select_columns_16.png' alt='select columns' /></a>
|
||||||
|
|
||||||
<div id='".$id."' class='e-show-if-js e-hideme col-selection'>\n";
|
<div id='".$id."' class='e-show-if-js e-hideme col-selection'>\n";
|
||||||
unset($columnsArray['options']);
|
unset($columnsArray['options'],$columnsArray['checkboxes']);
|
||||||
|
|
||||||
foreach($columnsArray as $key=>$fld)
|
foreach($columnsArray as $key=>$fld)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user