J4 Issue ?
avatar dneukirchen
dneukirchen
28 Feb 2018

Steps to reproduce the issue

Imo this is low priority, but i want it to be documented.

This issue came up during removal of inline scripts in joomla-projects/joomla-es6#82

  1. If enabled, disable plg_system_redirect
  2. Go to com_redirect
  3. Click on link Redirect System Plugin in alert and see the plugin edit modal
  4. Close the button using the modal close button

Expected result

Plugin checked in

Actual result

Plugin checked out

System

current 4.0@dev

Additional comments

Why are we doing is this way? We should drop the modal and just show a link to the plugin edit page (perhaps with a redirectBack url param) or use ajax to just enable the plugin when user clicks a button...

avatar dneukirchen dneukirchen - open - 28 Feb 2018
avatar joomla-cms-bot joomla-cms-bot - change - 28 Feb 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Feb 2018
avatar dneukirchen dneukirchen - change - 28 Feb 2018
The description was changed
avatar dneukirchen dneukirchen - edited - 28 Feb 2018
avatar brianteeman
brianteeman - comment - 28 Feb 2018

wont this be the same with all modals? Or is there something different about this one

avatar dneukirchen dneukirchen - change - 28 Feb 2018
The description was changed
avatar dneukirchen dneukirchen - edited - 28 Feb 2018
avatar dneukirchen
dneukirchen - comment - 28 Feb 2018

This particular issue only affects com_plugins.

If we have other places where we open plugin edit page in a modal window, those are probably affected as well.

I did not check other edit-modals...

avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Feb 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Feb 2018
Category com_redirect
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Feb 2018
Build staging 4.0-dev
avatar infograf768
infograf768 - comment - 28 Feb 2018

In present 4.0-dev, I do not get any Message in Redirect, and I even have no Input field for Collect URLS...

screen shot 2018-02-28 at 11 32 23

avatar brianteeman
brianteeman - comment - 28 Feb 2018

The input fields is resolved by #19296 iirc

avatar dneukirchen
dneukirchen - comment - 28 Feb 2018

@infograf768

  1. Go to com_redirect

not the plugin

avatar dgt41
dgt41 - comment - 28 Feb 2018

@dneukirchen one way to solve this, without going to far down the architectural changes needed, is to bind the close event of the modal to press the cancel button in the form (or simple submit the form with article.cancel task or whatever task is needed to basically close the edit view)

avatar infograf768
infograf768 - comment - 28 Feb 2018

@dneukirchen
As I said, I do not get any message anymore in present 4.0-dev, including in com_redirect

screen shot 2018-02-28 at 11 40 41

avatar infograf768
infograf768 - comment - 28 Feb 2018

Will try a full clean install

avatar infograf768
infograf768 - comment - 28 Feb 2018

Same. Looks like other stuff is broken.

avatar dneukirchen
dneukirchen - comment - 28 Feb 2018

bind the close event of the modal to press the cancel button in the form

thats what old code was doing... before someone broke it.

TBH: for me it was the first time that i even noticed that there is something clickable in the alert. I saw it in code... not in the ui. why not just show a plain old link to the plugin edit page?

If we want to do something "fancy" (but again: i dont see the need) we can show enable (ajax) and configure (plain old link) buttons in the alert.

avatar infograf768
infograf768 - comment - 28 Feb 2018

@dgt41
Looks like #19776 has broken a lot of stuff. For example joomla-alert.

avatar dgt41
dgt41 - comment - 28 Feb 2018

Great! Expected as well!

avatar infograf768
infograf768 - comment - 28 Feb 2018

Concerning joomla-alert its css is apparently wrong

oomla-alert {
    display: block;
    min-width: 250px;
    padding: .5rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    opacity: 0;
    border-radius: .25rem;
    transition: opacity .15s linear;

Opacity should be 100

avatar dgt41
dgt41 - comment - 28 Feb 2018

Just run :

node build.js --compilejs

and you'll be fine again

avatar infograf768
infograf768 - comment - 28 Feb 2018

I never run in front of danger...

avatar dgt41
dgt41 - comment - 28 Feb 2018

@infograf768 there you go: #19799
would be easier if you used chrome in the 4 alpha

avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar Quy
Quy - comment - 9 Jun 2019

Unable to reproduce. Please confirm.

avatar joomla-cms-bot joomla-cms-bot - change - 9 Jun 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-06-09 14:42:53
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 9 Jun 2019
avatar Quy Quy - change - 9 Jun 2019
Closed_Date 2019-06-09 14:42:53 2019-06-09 14:42:54
Closed_By joomla-cms-bot Quy
avatar joomla-cms-bot
joomla-cms-bot - comment - 9 Jun 2019

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/19798

Add a Comment

Login with GitHub to post a comment