Plugin Directory

Changeset 3182663


Ignore:
Timestamp:
11/05/2024 09:39:30 PM (17 months ago)
Author:
loncar
Message:

New version 3.12.6

Location:
easy-appointments/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • easy-appointments/trunk/js/admin.prod.js

    r3180851 r3182663  
    658658            $lis.each(function(index, el) {
    659659                var name = jQuery(el).data('name');
    660                 var element = obj.fields.findWhere({label:name});
     660                var element = obj.fields.findWhere({ label: name });
     661
     662                if (!element) {
     663                    var modelId = jQuery(el).data('id');
     664                    element = obj.fields.findWhere({ id: modelId });
     665                }
    661666
    662667                element.set('position', count++);
  • easy-appointments/trunk/main.php

    r3180851 r3182663  
    55 * Plugin URI: https://easy-appointments.com/
    66 * Description: Simple and easy to use management system for Appointments and Bookings
    7  * Version: 3.12.5
     7 * Version: 3.12.6
    88 * Requires PHP: 5.3
    99 * Author: Nikola Loncar
     
    2222 * Currently plugin version.
    2323 */
    24 define( 'EASY_APPOINTMENTS_VERSION', '3.12.5' );
     24define( 'EASY_APPOINTMENTS_VERSION', '3.12.6' );
    2525
    2626// path for source files
  • easy-appointments/trunk/readme.txt

    r3180851 r3182663  
    66Tested up to: 6.6
    77Requires PHP: 5.3
    8 Stable tag: 3.12.5
     8Stable tag: 3.12.6
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    214214== Changelog ==
    215215
     216= 3.12.6 (2024-11-05)
     217* Fixed issue with empty list on appointments page
     218* Fixed issue with order of custom fields
     219
    216220= 3.12.5 (2024-11-03)
    217221* Fixed compatibility mode and delete action on custom form fields
  • easy-appointments/trunk/src/templates/admin.tpl.php

    r3176193 r3182663  
    930930<script type="text/template" id="ea-tpl-single-advance-redirect">
    931931    <li>
    932         <span class="bulk-value"><%- _.findWhere(locations, {id:row.location}).name %></span>
    933         <span class="bulk-value"><%- _.findWhere(services,  {id:row.service}).name %></span>
    934         <span class="bulk-value"><%- _.findWhere(workers,   {id:row.worker}).name s%></span>
     932        <span class="bulk-value"><%- _.findWhere(locations, {id:row.location})?.name %></span>
     933        <span class="bulk-value"><%- _.findWhere(services,  {id:row.service})?.name %></span>
     934        <span class="bulk-value"><%- _.findWhere(workers,   {id:row.worker})?.name s%></span>
    935935        <span style="display: inline-block;"><button class="button bulk-connection-remove">Remove</button></span>
    936936    </li>
  • easy-appointments/trunk/src/templates/appointments.tpl.php

    r2839111 r3182663  
    118118    <td colspan="2" class="post-title page-title column-title">
    119119        <strong>#<%- row.id %></strong>
    120         <strong><%- _.findWhere(cache.Locations, {id:row.location}).name %></strong>
    121         <strong><%- _.findWhere(cache.Services, {id:row.service}).name %></strong>
    122         <strong><%- _.findWhere(cache.Workers, {id:row.worker}).name %></strong>
     120        <strong><%- _.findWhere(cache.Locations, {id:row.location})?.name %></strong>
     121        <strong><%- _.findWhere(cache.Services, {id:row.service})?.name %></strong>
     122        <strong><%- _.findWhere(cache.Workers, {id:row.worker})?.name %></strong>
    123123    </td>
    124124    <td colspan="2">
    125         <% _.each(cache.MetaFields,function(item,key,list) { %>
     125        <% _.each(cache.MetaFields, function(item,key,list) { %>
    126126            <% if (row[item.slug] !== "undefined" && item.type !== 'TEXTAREA') { %>
    127127            <strong><%- row[item.slug] %></strong><br>
Note: See TracChangeset for help on using the changeset viewer.