Pending

User tests: Successful: Unsuccessful:

avatar ReLater
ReLater
17 Feb 2021

Summary of Changes

  • Return always an array instead of NULL if no items found.

Testing Instructions

  • Create a weblinks category without any entries(!).
  • Set up a mod_weblinks for display in frontend and select above new category.

Expected result

  • No PHP warning

Actual result

avatar ReLater ReLater - open - 17 Feb 2021
avatar ChristineWk
ChristineWk - comment - 23 Mar 2021

Could this be closed? #422?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/weblinks/432.

avatar ReLater
ReLater - comment - 23 Mar 2021

My pr is only for the module. Looks like #422 is also talking about the component. Therefore: I don't know.

avatar BertaOctech
BertaOctech - comment - 30 Apr 2021

Hi, I installed com_weblinks 4.0.0-dev in Joomla version, ‎4.0.0-beta8-dev.

I receive an error at administrator/index.php?option=com_categories&extension=com_weblinks

1054 Unknown column 'c.published' in 'field list'

Which com_weblinks should I have installed?


Database Type mysql
10.4.17-MariaDB
utf8mb4_general_ci
utf8mb4_general_ci
None
No
7.3.27
Apache/2.4.46 (Unix) OpenSSL/1.1.1i PHP/7.3.27 mod_perl/2.0.11 Perl/v5.32.1
apache2handler
Joomla! 4.0.0-beta8-dev Development [ Mañana ] 2-February-2021 20:02 GMT
Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0
avatar joomdonation
joomdonation - comment - 18 Aug 2021

@ReLater If you look at the model class, it could return false https://github.com/joomla-extensions/weblinks/blob/master/src/components/com_weblinks/models/category.php#L76 (in case database failure) and for that case, the error still happens.

I updated your PR abit to return empty array for that case. Hope that is OK for you.

avatar joomdonation
joomdonation - comment - 18 Aug 2021

Before patch, there is an error

error

After patch, the error is gone.

So I will merge this PR and we can continue working on other issues. Thanks !

avatar joomdonation joomdonation - change - 18 Aug 2021
Status New Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-08-18 07:31:49
Closed_By joomdonation
avatar joomdonation joomdonation - close - 18 Aug 2021
avatar joomdonation joomdonation - merge - 18 Aug 2021

Add a Comment

Login with GitHub to post a comment