Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
system.module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Oct 2013 at 21:20 UTC
Updated:
29 Jul 2014 at 23:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
internetdevels commentedComment #3
internetdevels commentedComment #5
internetdevels commentedNew one.
Comment #7
dipen chaudhary commentedOrder of _title matters, tested locally.
Comment #9
dipen chaudhary commentedNot sure why this failed on the testbot, local test shows that it returns the correct title in the command array. Re-queuing to see if its pertinent.
7: 2102479-ajax-test-title-7.patch queued for re-testing.
Comment #11
vijaycs85@dipen chaudhary, I do remember we used to face this issue with test server before. as we can see both strings are same, but test fails on assertEqual(). Not sure what we did to make it work.
Comment #12
vijaycs857: 2102479-ajax-test-title-7.patch queued for re-testing.
Comment #14
dipen chaudhary commented@Vijay,
The testbot results shows command array to have the title "Home" and not "Ajax Form contents" for some reason, whereas local test shows it to be correct :(
What do we do in such scenarios where there is discrepancy between local test and testbot? My local environment is uptodate.
Comment #15
dipen chaudhary commentedAfter some investigation and looking at some other code found out --
$form['#title'] = t('');was not the right way to set modal dialog title, _title in routing.yml helped.
Comment #16
vijaycs85Yep, if it is static title and not changing inside callback, we can set it in routing file.
Minor: Empty spaces or tab character.
Comment #17
dipen chaudhary commentedRemoved some unnecessary whitespaces.
Comment #19
dawehner17: 2102479-ajax-test-title-16.patch queued for re-testing.
Comment #21
dawehner17: 2102479-ajax-test-title-16.patch queued for re-testing.
Comment #22
vijaycs85Good to go. still applies with code base...
Comment #23
catchComment #24
dries commentedLooks good! Committed to 8.x. Thanks.