Same as pr #2110 except for 4.2 branch
steps to test:
create a ring group with one extension and one user. This will add one user to v_ring_group_users table. Delete the ring group.
expected result:
ring group and all it's components are deleted
actual result
v_ring_group_user entry for this ring group is not deleted.
This fix: deletes v_ring_group_user when ring group is deleted.
app/fax/app_defaults.php:
+ fix: duplicate check only within same default_setting_category. This fixes the bug where "keep_local" for fax wasn't being created because there was a "keep_local" for voicemail. Without this fix you will get a lua error due to the field not being set and nothing shows up in the sent faxes log.
fax/fax_log_view.php:
+ fix: back button text is missing. Copied correct localized text code from another fax page that worked.
app/fax/app_config.php
+ fix: date field is now timestamp for postgres+mysql. This fixes the listing only showing the date, not the time as well.
Note: app->defaults doesn't change field types. Existing installs will have to manually update the field type e.g. for postgres:
sudo -sHu postgres
\d fusionpbx
alter table v_fax_logs alter column fax_date type timestamp without time zone;
\q
Right now label is based on the name this fixes the label. The label part of the array is not saved in the database yet so it can't be used at this time.
Go back to the original device/app_defaults.php. What I had in mind for this was a restore default button. When the administrator decides they want to update it. They may not want or need additional vendors.
Update all the time condition presets that used mweek (week of month) change to mday (day of month).
The week of the month starts according to the calendar even if its partial week on the calendar it counts as week one according to C language and the calendar in the United States. Example Labor day September 2016 1st week was Sept 1-3 2016. The second week is the first Monday.
Added the rest of the aastra function key options to app_config. And to
my surprise the functions would not save to the database, found the
problem to be the app_defaults logic would only allow adding on a fresh
install. So I fixed it to work with a update also.
Raw data field was not being pulled so logic was broken, added derived
field raw_data_exists to sql statement, instead of pulling raw data with
query. Also added logic to hide the view extended data icon on the right
side of table.