From: Anthony Talarico Date: Tue, 21 Nov 2017 19:06:31 +0000 (-0500) Subject: renaming visible field to active X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=60b5206367a0904f5f598ec31de9a9a401a828e2;p=WP-Plugins%2Fglm-member-db-for-sale.git renaming visible field to active changing the visible field from the old data to active / pending --- diff --git a/classes/data/dataForSale.php b/classes/data/dataForSale.php index ff679c1..6ae40f0 100644 --- a/classes/data/dataForSale.php +++ b/classes/data/dataForSale.php @@ -149,14 +149,6 @@ class GlmDataForSale extends GlmDataAbstract 'force_list' => true, 'use' => 'a' ), - 'status' => array ( - 'field' => 'status', - 'type' => 'list', - 'list' => $this->config['status'], - 'default' => 'Pending', - 'force_list' => true, - 'use' => 'a' - ), 'title' => array ( 'field' => 'title', 'type' => 'text', @@ -197,8 +189,8 @@ class GlmDataForSale extends GlmDataAbstract 'type' => 'datetime', 'use' => 'lge' ), - 'visible' => array ( - 'field' => 'visible', + 'active' => array ( + 'field' => 'active', 'type' => 'checkbox', 'use' => 'a' ), diff --git a/models/admin/management/itemsImport.php b/models/admin/management/itemsImport.php index 64293ab..e7cdb5c 100644 --- a/models/admin/management/itemsImport.php +++ b/models/admin/management/itemsImport.php @@ -188,7 +188,7 @@ class GlmMembersAdmin_management_itemsImport 'contact_email' =>$value['contactemail'], 'contact_name' =>$value['contactname'], 'contact_phone' =>$value['contactphone'], - 'visible' =>$value['visable'], + 'active' =>$value['visable'], 'company' =>$value['company'], 'terms' =>$value['terms'], 'post_date' =>$value['ds'], diff --git a/setup/databaseScripts/create_database_V0.0.2.sql b/setup/databaseScripts/create_database_V0.0.2.sql index 77adc14..c809193 100644 --- a/setup/databaseScripts/create_database_V0.0.2.sql +++ b/setup/databaseScripts/create_database_V0.0.2.sql @@ -25,7 +25,7 @@ CREATE TABLE {prefix}items ( contact_phone TINYTEXT NULL , post_date DATETIME NULL, updated DATETIME NULL, - visible BOOL NULL, + active BOOL NULL, terms TEXT NULL, item_expiration INT NULL, image_1 TINYTEXT NULL , @@ -33,7 +33,6 @@ CREATE TABLE {prefix}items ( image_3 TINYTEXT NULL , member INT NULL, repost BOOL null, - status TINYINT null, PRIMARY KEY (id) ); diff --git a/setup/databaseScripts/update_database_V0.0.2.sql b/setup/databaseScripts/update_database_V0.0.2.sql index b8d6da7..de534fd 100644 --- a/setup/databaseScripts/update_database_V0.0.2.sql +++ b/setup/databaseScripts/update_database_V0.0.2.sql @@ -8,4 +8,4 @@ -- Add Status -ALTER TABLE {prefix}items ADD COLUMN status TINYINT; \ No newline at end of file +ALTER TABLE {prefix}items CHANGE COLUMN visible active TINYINT; \ No newline at end of file diff --git a/views/admin/forSale/edit.html b/views/admin/forSale/edit.html index 8879187..d6e88a4 100644 --- a/views/admin/forSale/edit.html +++ b/views/admin/forSale/edit.html @@ -180,10 +180,10 @@
- Visible + Active
- +