Topic-icon JFB Request not allow more than 2 request types

Active Subscriptions:

None
14 years 4 months ago #18582 by phiree
Im trying to set up multiple request types to direct to different pages but it wont allow me to set up more than 2.

When i try to save a third nothing happens. - www.localtradeclub.com

You still have the log in details.
The topic has been locked.
Support Specialist
14 years 4 months ago #18587 by alzander
We're investigating. I created a new request called "test request". It doesn't show up in the list, like you mention. However, if I type "test" into the filter box, it shows up. If it type "te", your 2 requests show up, but mine doesn't.

So, it seems like the requests are being created, but something is royally screwing up our filtering. We'll be testing some things and see what could be making the filtering go wrong. My guess (tell me if this seems right) is that you might have added a special character ()'#"! etc in the title of the Request.

We're planning a minor bug-fix release (4.1.2) for next week, and hopefully we'll have this narrowed down for that release if it's not something else.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18591 by phiree
Yep i see it - how bizzare is that :)

When i type "USA" in it shows the request, but when blank only shows the first two id 1 and 2
The topic has been locked.
Support Specialist
14 years 4 months ago #18593 by alzander
Yeah, so, it obviously seems like the Requests are there and getting saved. It's just a view issue. You should be able to configure and send the requests (if you can find them again). We'll be looking into what could be causing that.

If we have any other questions, we'll let you know.

Alex
The topic has been locked.
Support Specialist
14 years 4 months ago #18650 by alzander
Philip,
We found the bug, and it was with how we read the database and get all the information out we need. This will be fixed in the 4.1.2 release (due out in a few days). If you want to fix now, you can make the following quick edit to your existing installation.

You'll need to edit: /administrator/components/com_jfbconnect/models/request.php.
Around line 42, you'll see a big MySQL query. This needs to be updated to look like:
SELECT r.*, COUNT(n.jfbc_request_id) send_count FROM #__jfbconnect_request r LEFT JOIN #__jfbconnect_notification n ON r.id=n.jfbc_request_id GROUP BY r.id ORDER BY id DESC
The change there is that the "GROUP BY n.jfbc_request_id" is now "GROUP BY r.id".

Thanks for the report,
Alex
The topic has been locked.