svg
This commit is contained in:
@ -359,7 +359,7 @@ class RedmineService
|
||||
'json' => ['issue' => $data],
|
||||
]);
|
||||
|
||||
if (200 !== $response->getStatusCode()) {
|
||||
if (200 !== $response->getStatusCode() && 204 !== $response->getStatusCode()) {
|
||||
if (401 === $response->getStatusCode()) {
|
||||
throw new \RuntimeException('Erreur Redmine ('.$response->getStatusCode().') : Opération non autorisée, avez-vous placé votre apikey redmine sur votre profil');
|
||||
}
|
||||
@ -367,7 +367,7 @@ class RedmineService
|
||||
throw new \RuntimeException('Erreur de communication avec Redmine : '.$response->getStatusCode());
|
||||
}
|
||||
|
||||
return $response->toArray();
|
||||
return [];
|
||||
} catch (TransportExceptionInterface $e) {
|
||||
throw new \RuntimeException('Erreur de communication avec Redmine : '.$e->getMessage());
|
||||
}
|
||||
|
@ -9,11 +9,13 @@
|
||||
|
||||
<div class="d-flex">
|
||||
<small class="text-muted" style="flex-grow:1">Projet : {{ issue.redmine.project.name }} • Tracker : {{ issue.redmine.tracker.name }}</small>
|
||||
{% for field in issue.redmine.custom_fields %}
|
||||
{% if field.id==11 and field.value!="" %}
|
||||
<small class="text-muted"><strong>{{ field.name }} =</strong> <a href="{{field.value}}" target="_blank">{{field.value|split('/')|last}}</a></small>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if issue.redmine.custom_fields is defined %}
|
||||
{% for field in issue.redmine.custom_fields %}
|
||||
{% if field.id==11 and field.value!="" %}
|
||||
<small class="text-muted"><strong>{{ field.name }} =</strong> <a href="{{field.value}}" target="_blank">{{field.value|split('/')|last}}</a></small>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -58,13 +60,15 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{% for field in issue.redmine.custom_fields %}
|
||||
{% if field.id==32 %}
|
||||
<hr>
|
||||
<strong>{{ field.name }} </strong><br>
|
||||
{{ field.value|textile_to_html|raw }}<br>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if issue.redmine.custom_fields is defined %}
|
||||
{% for field in issue.redmine.custom_fields %}
|
||||
{% if field.id==32 %}
|
||||
<hr>
|
||||
<strong>{{ field.name }} </strong><br>
|
||||
{{ field.value|textile_to_html|raw }}<br>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if issue.redmine.description %}
|
||||
|
Reference in New Issue
Block a user