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

[4.0]Namespace mod multilangstatus #21020

Merged
merged 3 commits into from
Jul 9, 2018
Merged

[4.0]Namespace mod multilangstatus #21020

merged 3 commits into from
Jul 9, 2018

Conversation

brianteeman
Copy link
Contributor

@infograf768 Please test this PR for your issue with #21009

@infograf768 Please test this PR for your issue with joomla#21009
@infograf768
Copy link
Member

Bravo. That was it.
Now, don't we need to also add the sql update as I did in my tentative patch?

diff --git a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-07-08.sql b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-07-08.sql
new file mode 100644
index 0000000..5ff17f1
--- /dev/null
+++ b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-07-08.sql
@@ -0,0 +1 @@
+UPDATE `#__extensions` SET `namespace` = 'Joomla\\Module\\Multilangstatus' WHERE `name` = 'mod_multilangstatus';
diff --git a/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2018-07-08.sql b/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2018-07-08.sql
new file mode 100644
index 0000000..5ff17f1
--- /dev/null
+++ b/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2018-07-08.sql
@@ -0,0 +1 @@
+UPDATE `#__extensions` SET `namespace` = 'Joomla\\Module\\Multilangstatus' WHERE `name` = 'mod_multilangstatus';

@@ -9,6 +9,7 @@
<authorUrl>www.joomla.org</authorUrl>
<version>3.0.0</version>
<description>MOD_MULTILANGSTATUS_XML_DESCRIPTION</description>
<namespace>Joomla\Module\Multilangstatus</namespace>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not indented for other core modules

@brianteeman
Copy link
Contributor Author

Now, don't we need to also add the sql update as I did in my tentative patch?

I was waiting to see if it worked for you. Will update soon

@infograf768
Copy link
Member

Note: I am curious to learn where in code this new setting in the xml is used when installing a clean Joomla.

@infograf768
Copy link
Member

I have tested this item ✅ successfully on 5e03cc8

thanks.


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

@infograf768
Copy link
Member

infograf768 commented Jul 9, 2018

OOps. No. the update sql are not good
It should not be
UPDATE #__extensionsSETprotected= 1 WHEREname = 'plg_extension_namespacemap';

but
UPDATE #__extensionsSETnamespace= 'Joomla\\Module\\Multilangstatus' WHEREname = 'mod_multilangstatus';

@brianteeman
Copy link
Contributor Author

sorry - copy paste error and then forgetting to save the change

@infograf768
Copy link
Member

OK now. One more tester.

@@ -0,0 +1 @@
UPDATE `#__extensions` SET `namespace` = 'Joomla\\Module\\Multilangstatus' WHERE `name` = 'mod_multilangstatus';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need the update scripts as this is a new feature in J4.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i thought that too but look at the other update scripts - :)

maybe we should just make a tracker item to review all update scripts before release

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laoneo
What would happen if the db is not updated when updating Joomla?

Also, please explain about:
I am curious to learn where in code this new setting in the xml is used when installing a clean Joomla.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, we need the updates.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should just make a tracker item to review all update scripts before release

#16458 is already there. Though it's far enough down the list I fully expect duplicates to be opened down the line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just added a release blocker tag on it so it will be easier to find. I hope.

@laoneo laoneo merged commit 99a640c into joomla:4.0-dev Jul 9, 2018
@laoneo laoneo added this to the Joomla 4.0 milestone Jul 9, 2018
@brianteeman
Copy link
Contributor Author

Thanks

@brianteeman brianteeman deleted the j-m branch July 9, 2018 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants