Changeset 2100273
- Timestamp:
- 06/04/2019 09:02:59 AM (7 years ago)
- Location:
- contactic/trunk
- Files:
-
- 3 edited
-
contact-form-7-db.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
view/CTC_ViewWhatsInDB.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contactic/trunk/contact-form-7-db.php
r2067294 r2100273 3 3 * Plugin Name: Contactic 4 4 * Plugin URI: https://contactic.io/ 5 * Version: 1.3. 45 * Version: 1.3.5 6 6 * Author: Contactic 7 7 * Author URI: https://contactic.io/ -
contactic/trunk/readme.txt
r2067294 r2100273 5 5 Tested up to: 5.1 6 6 Requires PHP: 5.4.45 7 Stable tag: 1.3. 47 Stable tag: 1.3.5 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 125 125 == Changelog == 126 126 127 = 1.3.5 = 128 * Save state of datatables on contacts page 129 * Hide blocked fields (NoSaveFields option) on contacts page 130 127 131 = 1.3.4 = 128 132 * Minor bugfix -
contactic/trunk/view/CTC_ViewWhatsInDB.php
r2067265 r2100273 60 60 $tableName = $plugin->getSubmitsTableName(); 61 61 62 $tableHtmlId = 'cf2dbtable';63 64 62 // Identify which forms have data in the database 65 63 $formsList = $plugin->getForms(); … … 93 91 // Sanitized version of $currSelection for display on the page 94 92 $currSelectionEscaped = htmlspecialchars($currSelection, ENT_QUOTES, 'UTF-8'); 93 94 $tableHtmlId = 'table-'.substr(sha1($currSelectionEscaped), 0, 14); 95 95 96 96 // If there is only one form in the DB, select that by default … … 384 384 $columns = $exporter->export($currSelection, $options, true); 385 385 386 $blacklisted_fields = $plugin->getNoSaveFields(); 387 386 388 ?> 387 389 … … 426 428 oTable = $('#<?php echo $tableHtmlId ?>').dataTable( { 427 429 serverSide: true, 430 stateSave: true, 428 431 ajax: { 429 432 url: "<?php echo $plugin->getAdminUrlPrefix('admin-ajax.php') ?>action=load_contacts&form_name=<?php echo urlencode($currSelection); ?>", … … 511 514 <?php 512 515 foreach ($columns as $aCol) { 513 ?> 514 { 515 data: "<?php echo substr($aCol, 0, 40); ?>", 516 name: '<?php echo substr($aCol, 0, 40); ?>' 517 }, 518 <?php 516 if (!in_array($aCol, $blacklisted_fields)){ 517 ?> 518 { 519 data: "<?php echo substr($aCol, 0, 40); ?>", 520 name: '<?php echo substr($aCol, 0, 40); ?>' 521 }, 522 <?php 523 } 519 524 } 520 525 ?> … … 607 612 } 608 613 foreach ($columns as $aCol) { 609 ?> 610 <th><?php echo substr($aCol, 0, 40); ?></th> 611 <?php 614 if (!in_array($aCol, $blacklisted_fields)){ 615 ?> 616 <th><?php echo substr($aCol, 0, 40); ?></th> 617 <?php 618 } 612 619 } 613 620 ?>
Note: See TracChangeset
for help on using the changeset viewer.