compucorp / civibooking

CiviBooking is a CiviCRM extension defining a resource booking application that runs on top of the CiviCRM platform.
Other
19 stars 44 forks source link

HC-62: Release Config Options Fix into Master #164

Closed MiyaNoctem closed 6 years ago

MiyaNoctem commented 6 years ago

Overview

We need to deploy the fix of configuration options seen when scheduling resources. Configuration drop down was not displaying all the configuration set options, not only the corresponding ones. On the other hand, when you open the Configuration drop down, it displays the "[configuration set option label] - [price] - [configuration set option label]", however, it should be "[configuration set option label] - [price] - [unit].

Before

Selection combo was showing all configuration options, no matter what resource was selected. This was happening because the configuration set's ID was not being used to filter the result. On the other hand, the option's label was being used instead of the unit's label where units should appear.

After

Fixed the API call so config set's ID was properly chained to options. Also, changed the template for config options so unit label is used instead of config option label.