Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix user rate search not working. #605

Merged
merged 1 commit into from Oct 21, 2021

Conversation

powerpbx
Copy link
Contributor

@powerpbx powerpbx commented Oct 6, 2021

Fix user rate search not working as pointed out here

https://groups.google.com/g/astpp/c/RTg9WaZABY8

and here

https://groups.google.com/g/astpp/c/Ut5sFvBEb0A

@powerpbx
Copy link
Contributor Author

powerpbx commented Oct 20, 2021

To reproduce,

Go to Accounts > Customers > Customers > Press the "Login as Customer" icon

Now that you are logged into the customer portal go to Rates > Rates and Search MyRates by entering some area code and pressing the Search button. You will just get the waiting icon but it never finds a match. If you go to Chrome or Firefox developer console you will see a 500 error code. Clicking on the link beside that code you will see the following error.

A Database Error Occurred
Error Number: 1054

Unknown column 'pattern' in 'where clause'

SELECT pricelist_id FROM (`accounts`) WHERE `pattern` LIKE '^212%' AND `id` = '15'

Filename: /var/www/html/astpp/models/db_model.php

Line Number: 77

@devangn devangn merged commit 2c0bf13 into iNextrix:v5.0 Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants