alkali147 / fbilling

Accounting and billing Application for FreePBX
BSD 2-Clause "Simplified" License
15 stars 22 forks source link

FreePBX 13 - Error when adding Permissions in FBilling Admin #31

Closed blazestudios97 closed 8 years ago

blazestudios97 commented 8 years ago

Click on "Add" in the Permissions section of the FBilling Admin and it results in the following error:

`/var/www/html/admin/modules/fbilling/components/permissions.php

Extensions assigned to this permission will be able to dial prefixes with weights selected here") ?>
            <td>
                <select multiple name='weight_id[]' tabindex="<?php echo ++$tabindex;?>">
                    <?php
                        foreach ($weight_list as $weight) {
                            if (in_array($weight['id'], $selected_weights)) {
                                echo "<option selected value=$weight[id]>$weight[name]</option>";
                            } else {

`

blazestudios97 commented 8 years ago

Additional details:

Whoops \ Exception \ ErrorException (E_WARNING) in_array() expects parameter 2 to be array, null given

alkali147 commented 8 years ago

Do you have latest source? because that issue probably fixed in this commit 6f76ac7797d187f10c7ca79b32ec7287c630da07 Thanks!

blazestudios97 commented 8 years ago

I pulled the 1.0 full release source last night. I will adjust that fix.

alkali147 commented 8 years ago

Yeah, I found that issue just now when fixing CSS related issues. You can pull latest master tree, and it should be fixed. I'll draft the release later today.

blazestudios97 commented 8 years ago

Yes, that fixed the issue.