Plugin Directory

Changeset 2100273


Ignore:
Timestamp:
06/04/2019 09:02:59 AM (7 years ago)
Author:
mouveo
Message:

Version : 1.3.5

Location:
contactic/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • contactic/trunk/contact-form-7-db.php

    r2067294 r2100273  
    33 * Plugin Name: Contactic
    44 * Plugin URI: https://contactic.io/
    5  * Version: 1.3.4
     5 * Version: 1.3.5
    66 * Author: Contactic
    77 * Author URI: https://contactic.io/
  • contactic/trunk/readme.txt

    r2067294 r2100273  
    55Tested up to: 5.1
    66Requires PHP: 5.4.45
    7 Stable tag: 1.3.4
     7Stable tag: 1.3.5
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    125125== Changelog ==
    126126
     127= 1.3.5 =
     128* Save state of datatables on contacts page
     129* Hide blocked fields (NoSaveFields option) on contacts page
     130
    127131= 1.3.4 =
    128132* Minor bugfix
  • contactic/trunk/view/CTC_ViewWhatsInDB.php

    r2067265 r2100273  
    6060        $tableName = $plugin->getSubmitsTableName();
    6161       
    62         $tableHtmlId = 'cf2dbtable';
    63 
    6462        // Identify which forms have data in the database
    6563        $formsList = $plugin->getForms();
     
    9391        // Sanitized version of $currSelection for display on the page
    9492        $currSelectionEscaped = htmlspecialchars($currSelection, ENT_QUOTES, 'UTF-8');
     93
     94        $tableHtmlId = 'table-'.substr(sha1($currSelectionEscaped), 0, 14);
    9595
    9696        // If there is only one form in the DB, select that by default
     
    384384                                $columns = $exporter->export($currSelection, $options, true);
    385385
     386                                $blacklisted_fields = $plugin->getNoSaveFields();
     387
    386388                                ?>
    387389
     
    426428                                            oTable = $('#<?php echo $tableHtmlId ?>').dataTable( {
    427429                                                serverSide: true,
     430                                                stateSave: true,
    428431                                                ajax: {
    429432                                                    url: "<?php echo $plugin->getAdminUrlPrefix('admin-ajax.php') ?>action=load_contacts&form_name=<?php echo urlencode($currSelection); ?>",
     
    511514                                                    <?php
    512515                                                        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                                                            }
    519524                                                        }
    520525                                                    ?>
     
    607612                                    }
    608613                                    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                                        }
    612619                                    }
    613620                                    ?>
Note: See TracChangeset for help on using the changeset viewer.