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

hackfest #50472 test fix

parent ffbf956c
Branches
Tags
6 merge requests!2080Sandbox detach zf from storm,!1922Master,!1921Hotline master,!1920Master,!1915Hackfest koha typedoc suggest,!1900hackfest: type doc in koha suggest form
- 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(),
'patronreason' => $suggestion->getPatronReason(),
......
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