Plugin Directory

Changeset 2502305


Ignore:
Timestamp:
03/24/2021 07:28:54 AM (5 years ago)
Author:
wordpressheroes
Message:

v2.0.6

Location:
wp-hourly
Files:
69 added
5 edited

Legend:

Unmodified
Added
Removed
  • wp-hourly/trunk/README.md

    r2501946 r2502305  
    9595
    9696== Changelog ==
     97= 2.0.6 March 24, 2021 =
     98* fixed some small bugs
    9799= 2.0.4 February 2, 2021 =
    98100* updated textdomain bugs
  • wp-hourly/trunk/core/insertion.php

    r2436603 r2502305  
    583583            $hourlyRate = $parameters['hourlyRate'];
    584584        }
    585         $query = "
    586             UPDATE {$wpdb->prefix}wph_unpaid_time_records utr
    587             INNER JOIN {$wpdb->prefix}wph_tasks t ON (t.id = utr.taskId)
    588             SET utr.hourlyRate = {$hourlyRate}
    589             WHERE
    590                 utr.projectId = {$id} AND
    591                 t.hourlyRate IS NULL
    592         ";
    593         $wpdb->query($query);
     585        if ($hourlyRate) {
     586            $query = "
     587                UPDATE {$wpdb->prefix}wph_unpaid_time_records utr
     588                INNER JOIN {$wpdb->prefix}wph_tasks t ON (t.id = utr.taskId)
     589                SET utr.hourlyRate = {$hourlyRate}
     590                WHERE
     591                    utr.projectId = {$id} AND
     592                    t.hourlyRate IS NULL
     593            ";
     594            $wpdb->query($query);
     595        }
    594596    }
    595597
  • wp-hourly/trunk/core/public.php

    r2501946 r2502305  
    804804    );
    805805
    806     return $wpdb->get_val($query) != 0;
     806    return $wpdb->get_var($query) != 0;
    807807}
    808808
  • wp-hourly/trunk/readme.txt

    r2501946 r2502305  
    9595
    9696== Changelog ==
     97= 2.0.6 March 24, 2021 =
     98* fixed some small bugs
    9799= 2.0.4 February 2, 2021 =
    98100* updated textdomain bugs
  • wp-hourly/trunk/wp-hourly.php

    r2501946 r2502305  
    66Description: WP HOURLY allows you to track billable time and have your customers pay you for it through your WooCommerce website. It is ideal for Freelancers and Agencies alike, giving you to ability to create tasks and assign them to your team members (Employees). An Employee can then submit time records which will show up in the My Account section of your WooCommerce website. The plugin also features extensive reports as well.
    77Author: SUPER WP HEROES
    8 Version: 2.0.5
     8Version: 2.0.6
    99Author URI: https://wphourly.com
    1010Requires at least: 4.5
     
    2929
    3030define('WP_HOURLY', true);
    31 define('WPH_VERSION', '2.0.5');
     31define('WPH_VERSION', '2.0.6');
    3232
    3333
Note: See TracChangeset for help on using the changeset viewer.