Skip to content

Commit aeb2219

Browse files
Merge branch '3.4' into 4.0
* 3.4: (22 commits) fix merge [Translation] Fix InvalidArgumentException when using untranslated plural forms from .po files Fixed exit code with non-integer throwable code [HttpFoundation] Support 0 bit netmask in IPv6 () [DI] Impossible to set an environment variable and then an array as container parameter [Process] remove false-positive BC breaking exception on Windows Tweaking class not found autowiring error [LDAP] added missing dots at the end of some exception messages. [TwigBridge] Add missing dev requirement for workflow fixed #25440 empty lines don't count for indent detection Set `width: auto` on WebProfiler toolbar's reset. [Lock] Fix incorrect phpdoc [Process] Dont rely on putenv(), it fails on ZTS PHP [HttpKernel] detect deprecations thrown by container initialization during tests [HttpKernel] Fix logging of post-terminate errors/exceptions [DI] Add context to service-not-found exceptions thrown by service locators [Debug] Fix catching fatal errors in case of nested error handlers [VarDumper] Fixed file links leave blank pages when ide is configured Fix hidden currency element with Bootstrap 3 theme ...
2 parents 3739f98 + ea185c5 commit aeb2219

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

Resources/views/Form/bootstrap_base_layout.html.twig

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,21 @@
88
{%- endblock textarea_widget %}
99

1010
{% block money_widget -%}
11-
<div class="input-group{{ group_class|default('') }}">
12-
{%- set append = money_pattern starts with '{{' -%}
13-
{%- if not append -%}
14-
<span class="input-group-addon">{{ money_pattern|replace({ '{{ widget }}':''}) }}</span>
15-
{%- endif -%}
11+
{% set prepend = not (money_pattern starts with '{{') %}
12+
{% set append = not (money_pattern ends with '}}') %}
13+
{% if prepend or append %}
14+
<div class="input-group{{ group_class|default('') }}">
15+
{% if prepend %}
16+
<span class="input-group-addon">{{ money_pattern|replace({ '{{ widget }}':''}) }}</span>
17+
{% endif %}
18+
{{- block('form_widget_simple') -}}
19+
{% if append %}
20+
<span class="input-group-addon">{{ money_pattern|replace({ '{{ widget }}':''}) }}</span>
21+
{% endif %}
22+
</div>
23+
{% else %}
1624
{{- block('form_widget_simple') -}}
17-
{%- if append -%}
18-
<span class="input-group-addon">{{ money_pattern|replace({ '{{ widget }}':''}) }}</span>
19-
{%- endif -%}
20-
</div>
25+
{% endif %}
2126
{%- endblock money_widget %}
2227

2328
{% block percent_widget -%}

Tests/Extension/WorkflowExtensionTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ class WorkflowExtensionTest extends TestCase
2525

2626
protected function setUp()
2727
{
28-
if (!class_exists(Workflow::class)) {
29-
$this->markTestSkipped('The Workflow component is needed to run tests for this extension.');
30-
}
31-
3228
$places = array('ordered', 'waiting_for_payment', 'processed');
3329
$transitions = array(
3430
new Transition('t1', 'ordered', 'waiting_for_payment'),

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"twig/twig": "^1.35|^2.4.4"
2121
},
2222
"require-dev": {
23-
"fig/link-util": "^1.0",
2423
"symfony/asset": "~3.4|~4.0",
2524
"symfony/dependency-injection": "~3.4|~4.0",
2625
"symfony/finder": "~3.4|~4.0",
@@ -38,7 +37,8 @@
3837
"symfony/console": "~3.4|~4.0",
3938
"symfony/var-dumper": "~3.4|~4.0",
4039
"symfony/expression-language": "~3.4|~4.0",
41-
"symfony/web-link": "~3.4|~4.0"
40+
"symfony/web-link": "~3.4|~4.0",
41+
"symfony/workflow": "~3.4|~4.0"
4242
},
4343
"conflict": {
4444
"symfony/form": "<3.4",

0 commit comments

Comments
 (0)