? ? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
5 Jan 2022

Pull Request for Issue # .

Summary of Changes

Fix empty parameter for mail template.

Testing Instructions

  1. Make a new installation of 4.1 Beta 3 and check in database the parameter modified by this PR here.
    Result: The parameter is wrong '{"tags": ["task_id", "task_title", ""]}'.
  2. Update the 4.1 beta 3 from step 1 to this PR by using either the patched package https://ci.joomla.org/artifacts/joomla/joomla-cms/4.1-dev/36576/downloads/50275/Joomla_4.1.0-dev+pr.36576-Development-Update_Package.zip or the custom update URL https://ci.joomla.org/artifacts/joomla/joomla-cms/4.1-dev/36576/downloads/50275/pr_list.xml , check if it works without SQL errors and check in database if the empty parameter changed by this PR has been fixed.
    Result: The parameter is right '{"tags": ["task_id", "task_title"]}'.

Documentation Changes Required

None.

avatar dgrammatiko dgrammatiko - open - 5 Jan 2022
avatar dgrammatiko dgrammatiko - change - 5 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jan 2022
Category SQL Administration com_admin
avatar dgrammatiko dgrammatiko - change - 5 Jan 2022
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jan 2022
Category SQL Administration com_admin SQL Administration com_admin Postgresql
avatar brianteeman
brianteeman - comment - 5 Jan 2022

Do we still allow updates from beta to stable? If so do we need an update query as well?

avatar richard67
richard67 - comment - 5 Jan 2022

What shall this PR fix? For sure it’s not an SQL error during update. The changes here don’t fix any error in SQL syntax.

avatar dgrammatiko
dgrammatiko - comment - 5 Jan 2022

The params column should be a json string. I just saw that one row was inconsistent, that’s all.

avatar richard67
richard67 - comment - 5 Jan 2022

Ah, i thought it was an attempt to fix the update issue.

I don’t think we need a new update SQL because it will be fixed anyway if someone saves these options, but maybe @bembelimen has a different opinion.

avatar dgrammatiko
dgrammatiko - comment - 5 Jan 2022

@richard67 on the last file (the jooally plg) you are also including the columns checkout and checkout_time but this file doesn’t. Would that be a prob?

avatar richard67
richard67 - comment - 5 Jan 2022

No that shouldn’t be a problem since they have default value of NULL, as far as I remember. Can’t check now because off desk.

avatar joomla-cms-bot joomla-cms-bot - change - 8 Jan 2022
Category SQL Administration com_admin Postgresql SQL Administration com_admin Postgresql Installation
avatar richard67
richard67 - comment - 8 Jan 2022

As agreed in our meeting, I have removed the change for the empty string instead of empty json params in the extensions table so this PR fixes only the wrong mail template params.

I have also added a new update SQL to fix that for previous beta versions, and I have changed that in supports.sql for new installations, too.

The change for the extensions table should be done in a separate PR because it needs to do the same fix for other plugins, too.

You can see that here: https://github.com/joomla/joomla-cms/blob/4.1-dev/installation/sql/mysql/base.sql#L245-L379

We are completely inconsistent with that params. It should be fixed all together.

avatar richard67
richard67 - comment - 8 Jan 2022

@brianteeman Check my previous comment. I think it answers your question. PR will come sooner or later to fix that, too.

avatar brianteeman
brianteeman - comment - 8 Jan 2022

@richard67 thanks - our posts crossed.

avatar richard67
richard67 - comment - 8 Jan 2022

@brianteeman Another question is why we change the old update SQL at all if we have a new one which fixes that during the update. I know you don't like us touching the old SQL if not necessary, and I know some people thought they have to run it again when it has changed, which caused a mess. The reason why I prefer to change them is that often they are used as templates for making new update SQL in future, so if we fix them we make sure people don't copy wrong stuff. I had discussed that with @bembelimen and he agreed with me, that's why I did not revert that change in the old update script.

I thought I should explain it to you so you know why I do it like I do here.

avatar richard67 richard67 - change - 8 Jan 2022
The description was changed
avatar richard67 richard67 - edited - 8 Jan 2022
avatar richard67 richard67 - change - 8 Jan 2022
The description was changed
avatar richard67 richard67 - edited - 8 Jan 2022
avatar richard67 richard67 - change - 8 Jan 2022
The description was changed
avatar richard67 richard67 - edited - 8 Jan 2022
avatar richard67
richard67 - comment - 8 Jan 2022

I have tested this item successfully on 4aec868


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36576.

avatar richard67 richard67 - test_item - 8 Jan 2022 - Tested successfully
avatar richard67 richard67 - change - 8 Jan 2022
The description was changed
avatar richard67 richard67 - edited - 8 Jan 2022
avatar alikon
alikon - comment - 9 Jan 2022

I have tested this item successfully on 4aec868


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36576.

avatar alikon alikon - test_item - 9 Jan 2022 - Tested successfully
avatar alikon alikon - change - 9 Jan 2022
Status Pending Ready to Commit
avatar alikon
alikon - comment - 9 Jan 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36576.

avatar bembelimen bembelimen - change - 9 Jan 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-09 10:51:59
Closed_By bembelimen
Labels Added: ?
avatar bembelimen bembelimen - close - 9 Jan 2022
avatar bembelimen bembelimen - merge - 9 Jan 2022
avatar bembelimen
bembelimen - comment - 9 Jan 2022

Thx

Add a Comment

Login with GitHub to post a comment