? ? Pending

User tests: Successful: Unsuccessful:

avatar HLeithner
HLeithner
4 Jul 2019

Summary of Changes

Updated SQL queries to prepared statements and made some cleanups around the queries.

Testing Instructions

Use the plugin in all ways you can think of.

Install multilang sampledata

Expected result

Nothing changed.

avatar HLeithner HLeithner - open - 4 Jul 2019
avatar HLeithner HLeithner - change - 4 Jul 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jul 2019
Category Unit Tests Front End Plugins
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jul 2019
Title
[plg_sampledata_multilang] Convert to prepared statement
[4.0] [plg_sampledata_multilang] Convert to prepared statement
avatar franz-wohlkoenig franz-wohlkoenig - edited - 5 Jul 2019
avatar brianteeman
brianteeman - comment - 5 Jul 2019

again - looks like two unrelated files here

avatar HLeithner HLeithner - change - 7 Jul 2019
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jul 2019
Category Unit Tests Front End Plugins Front End Plugins
avatar Quy
Quy - comment - 7 Jul 2019

1st attempt:

There is an error in a sample data plugin. Response is invalid.

2nd attempt:

Step 4: Failed creating the Main menu (en-GB).

Nothing in PHP error log.

avatar HLeithner
HLeithner - comment - 7 Jul 2019

This requires joomla-framework/database#162 too... maybe this is the problem.

avatar HLeithner
HLeithner - comment - 8 Jul 2019

@Quy can you try it again with the database Pr applied because I can't find a reason why it shouldn't work. Did it work without the PR?.

avatar Quy
Quy - comment - 8 Jul 2019

Works without the PR.

How to apply the database PR?

Here is step 4 which corresponds with the code that uses bindArray.

Step 4: Specific Main Menus have been created as well as associated 'List All Categories' menu items!

avatar HLeithner
HLeithner - comment - 8 Jul 2019

Apply this file https://github.com/joomla-framework/database/pull/162.diff to the libaries/vendor folder should do it

avatar infograf768
infograf768 - comment - 9 Jul 2019

@HLeithner
Using https://github.com/joomla-framework/database/pull/162.diff solves issues here (tested with mysqli)

avatar infograf768
infograf768 - comment - 9 Jul 2019

@Quy
I modified the .diff to be correctly applied locally.

database_patch.txt

avatar infograf768 infograf768 - change - 9 Jul 2019
Labels Removed: ?
avatar SharkyKZ SharkyKZ - test_item - 21 Aug 2019 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 21 Aug 2019

I have tested this item successfully on 0b69574


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

avatar Quy Quy - test_item - 24 Aug 2019 - Tested successfully
avatar Quy
Quy - comment - 24 Aug 2019

I have tested this item successfully on 0b69574


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

avatar Quy Quy - change - 24 Aug 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 24 Aug 2019

RTC


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

avatar HLeithner HLeithner - change - 24 Aug 2019
Labels Added: ?
avatar zero-24
zero-24 - comment - 24 Aug 2019
FILE: /********/src/plugins/sampledata/multilang/multilang.php
38 | ----------------------------------------------------------------------
39 | FOUND 3 ERRORS AFFECTING 2 LINES
40 | ----------------------------------------------------------------------
41 | 926 \| ERROR \| [x] Multi-line function call not indented correctly;
42 | \| \| expected 20 spaces but found 16. Note: the
43 | \| \| autofixer will convert spaces to tabs
44 | \| \| (PEAR.Functions.FunctionCallSignature.Indent)
45 | 926 \| ERROR \| [x] Multi-line function call not indented correctly;
46 | \| \| expected 20 spaces but found 16. Note: the
47 | \| \| autofixer will convert spaces to tabs
48 | \| \| (PEAR.Functions.FunctionCallSignature.Indent)
49 | 927 \| ERROR \| [x] Closing parenthesis of a multi-line function call
50 | \| \| must be on a line by itself
51 | \| \| (PEAR.Functions.FunctionCallSignature.CloseBracketLine)
52 | ----------------------------------------------------------------------
53 | PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
54 | ----------------------------------------------------------------------
55


bc07be7 26 Aug 2019 avatar HLeithner cs
be471e6 26 Aug 2019 avatar HLeithner cs
avatar HLeithner
HLeithner - comment - 27 Aug 2019

We need a new test here please.

avatar Quy Quy - test_item - 27 Aug 2019 - Tested successfully
avatar Quy
Quy - comment - 27 Aug 2019

I have tested this item successfully on f1c7ccd


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

avatar Quy
Quy - comment - 27 Aug 2019

I have tested this item successfully on f1c7ccd


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

avatar HLeithner HLeithner - change - 27 Aug 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-08-27 15:23:03
Closed_By HLeithner
avatar HLeithner HLeithner - close - 27 Aug 2019
avatar HLeithner HLeithner - merge - 27 Aug 2019

Add a Comment

Login with GitHub to post a comment