Skip to content
Snippets Groups Projects
Commit ae1c4cf9 authored by Laurent's avatar Laurent
Browse files

hackfest #50472 test fix

parent 72819ed2
Branches
Tags
3 merge requests!2080Sandbox detach zf from storm,!1940Dev#48981 3455 lier des cartes via bokeh,!1929Dev#48981 3455 lier des cartes via bokeh
- ticket #50472 : suggestions d'achat Koha/Nanook : ajout d'un sélecteur pour le type de document
\ No newline at end of file
......@@ -100,10 +100,13 @@ class Class_WebService_SIGB_Koha_RestfulService
public function suggest($suggestion) {
$doctype_label = Class_TypeDoc::find($suggestion->getDocType())->getLibelle();
$doc_type = Class_TypeDoc::find($suggestion->getDocType());
$doctype_label = $doc_type
? ' [' . $doc_type->getLibelle() . ']'
: '';
$datas = ['suggestedby' => $suggestion->getUser()->getIdSigb(),
'title' => $suggestion->getTitle() . ' [' . $doctype_label . ']',
'title' => $suggestion->getTitle() . $doctype_label,
'author' => $suggestion->getAuthor(),
'isbn' => $suggestion->getIsbn(),
'note' => $suggestion->getNote(),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment