Data Tables Generator by Supsystic - Version 1.10.7

Version Description

/ 19.03.2021 = * Add fix for import

Download this release

Release Info

Developer supsystic.com
Plugin Icon 128x128 Data Tables Generator by Supsystic
Version 1.10.7
Comparing to
See all releases

Code changes from version 1.10.6 to 1.10.7

app/SupsysticTables.php CHANGED
@@ -18,7 +18,7 @@ class SupsysticTables
18
 
19
  $menuSlug = 'supsystic-tables';
20
  $pluginPath = dirname(dirname(__FILE__));
21
- $environment = new Rsc_Environment('st', '1.10.6', $pluginPath);
22
 
23
  /* Configure */
24
  $environment->configure(
18
 
19
  $menuSlug = 'supsystic-tables';
20
  $pluginPath = dirname(dirname(__FILE__));
21
+ $environment = new Rsc_Environment('st', '1.10.7', $pluginPath);
22
 
23
  /* Configure */
24
  $environment->configure(
index.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Data Tables Generator by Supsystic
5
  * Plugin URI: http://supsystic.com
6
  * Description: Create and manage beautiful data tables with custom design. No HTML knowledge is required
7
- * Version: 1.10.6
8
  * Author: supsystic.com
9
  * Author URI: http://supsystic.com
10
  * Text Domain: supsystic_tables
4
  * Plugin Name: Data Tables Generator by Supsystic
5
  * Plugin URI: http://supsystic.com
6
  * Description: Create and manage beautiful data tables with custom design. No HTML knowledge is required
7
+ * Version: 1.10.7
8
  * Author: supsystic.com
9
  * Author URI: http://supsystic.com
10
  * Text Domain: supsystic_tables
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: supsystic.com
3
  Tags: data table, spreadsheet, table builder, charts, graphs, wordpress table plugin, excel, line chart, pie chart, visualise data
4
  Tested up to: 5.7
5
- Stable tag: 1.10.6
6
 
7
  Create data tables with charts and graphs. Custom design, navigation, searching and ordering functions. Export to PDF, CSV, Print. Excel spreadsheet. WooCommerce Integration.
8
 
@@ -214,18 +214,13 @@ It's perfect for product [Price List](http://woo.supsystic.com/price-list "Price
214
  Create custom order forms which increase your conversion rate!
215
 
216
  == Changelog ==
217
-
218
- = 1.10.6 / 16.03.2021 =
219
- * Major fix: Import fix (removed rows),
220
- * WP 5.7 Fix,
221
- * Fix for SSP,
222
- * Added SETTINGS - Preview Table Feature,
223
- * Import fix (another check of cell type - date time)
224
 
225
 
226
  = 1.10.5 / 11.03.2021 =
227
  * Fix for table-layout add option
228
- * Add fixed table layout
229
 
230
  = 1.10.4 / 02.03.2021 =
231
  * Revert changes to table-layout fixed.
2
  Contributors: supsystic.com
3
  Tags: data table, spreadsheet, table builder, charts, graphs, wordpress table plugin, excel, line chart, pie chart, visualise data
4
  Tested up to: 5.7
5
+ Stable tag: 1.10.7
6
 
7
  Create data tables with charts and graphs. Custom design, navigation, searching and ordering functions. Export to PDF, CSV, Print. Excel spreadsheet. WooCommerce Integration.
8
 
214
  Create custom order forms which increase your conversion rate!
215
 
216
  == Changelog ==
217
+ = 1.10.7 / 19.03.2021 =
218
+ * Add fix for import
 
 
 
 
 
219
 
220
 
221
  = 1.10.5 / 11.03.2021 =
222
  * Fix for table-layout add option
223
+ * Add fixed table layout
224
 
225
  = 1.10.4 / 02.03.2021 =
226
  * Revert changes to table-layout fixed.
src/SupsysticTables/Tables/Model/Tables.php CHANGED
@@ -1457,7 +1457,28 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
1457
  * @param int $id Table id
1458
  * @param array $rows An array of the rows
1459
  */
1460
- public function setRows($id, array $rows)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1461
  {
1462
  if (count($rows) === 0) {
1463
  throw new InvalidArgumentException('Too few rows.');
1457
  * @param int $id Table id
1458
  * @param array $rows An array of the rows
1459
  */
1460
+ public function setRows($id, array $rows, $remove = true)
1461
+ {
1462
+ if (count($rows) === 0) {
1463
+ throw new InvalidArgumentException('Too few rows.');
1464
+ }
1465
+
1466
+ try {
1467
+ if($remove) {
1468
+ $this->removeRows($id);
1469
+ }
1470
+
1471
+ foreach ($rows as $row) {
1472
+ $this->addRow($id, $row);
1473
+ }
1474
+ } catch (Exception $e) {
1475
+ throw new RuntimeException(
1476
+ sprintf('Failed to set rows: %s', $e->getMessage())
1477
+ );
1478
+ }
1479
+ }
1480
+
1481
+ public function setRowsImport($id, array $rows)
1482
  {
1483
  if (count($rows) === 0) {
1484
  throw new InvalidArgumentException('Too few rows.');