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

Allow recursive dca picker in the same table #906

Merged
merged 4 commits into from
Jul 4, 2017

Conversation

aschempp
Copy link
Member

fixes #883

Unfortunately, there's no cleaner solution…

Also tested to edit a page within the page picker and pick another page for the redirect 💪

$menuBuilder = \System::getContainer()->get('contao.menu.picker_menu_builder');

if (!$menuBuilder->supportsTable($this->strTable))
if (!$menuBuilder->supportsTable($this->strTable) || empty($this->strPickerTable) || empty($this->strPickerField) || empty($this->intPickerId))
Copy link
Member

Choose a reason for hiding this comment

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

We should run those checks before we initialize the menu builder, shouldn't we?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree, changed in 4665cd5

@leofeyer leofeyer merged commit ebdc1d6 into contao:hotfix/4.4.1 Jul 4, 2017
@leofeyer
Copy link
Member

leofeyer commented Jul 4, 2017

For some reason, this change breaks the link picker (TinyMCE).

@leofeyer
Copy link
Member

leofeyer commented Jul 4, 2017

It is the empty($this->intPickerId) part. Why must the picker ID be set?

@leofeyer
Copy link
Member

leofeyer commented Jul 4, 2017

Also, the picker is not applied correctly anymore now:

There should be no yellow background in the news archive view.

@leofeyer
Copy link
Member

leofeyer commented Jul 4, 2017

Reverted and fixed in 887bac7 now.

@aschempp aschempp deleted the hotfix/4.4-picker branch July 10, 2017 12:26
@leofeyer leofeyer modified the milestones: 4.4.1, 4.4 May 14, 2019
leofeyer added a commit that referenced this pull request Oct 31, 2019
Description
-----------

Fixes #847

Commits
-------

24928cb3 Quote the identifiers in the back end filter menu (see #847)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants