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