From bbb4fe2bbf5320a0cf6f0e41e9edc18377368d6b Mon Sep 17 00:00:00 2001 From: "kevin.dezaphi" <kevin.dezaphi@maarch.org> Date: Wed, 17 Oct 2018 12:27:05 +0200 Subject: [PATCH] FIX #8677 correct color in research and js error when researching --- .../indexing_searching/documents_list_mlb_search_adv.php | 2 +- src/frontend/app/search/search-home.component.html | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/maarch_entreprise/indexing_searching/documents_list_mlb_search_adv.php b/apps/maarch_entreprise/indexing_searching/documents_list_mlb_search_adv.php index 7be92cd943d..349f68cc0d9 100755 --- a/apps/maarch_entreprise/indexing_searching/documents_list_mlb_search_adv.php +++ b/apps/maarch_entreprise/indexing_searching/documents_list_mlb_search_adv.php @@ -469,7 +469,7 @@ if ($mode == 'normal') { } if ($tab[$i][$j][$value] == 'status') { - $style = "style='color:".$_SESSION['mail_priorities_color'][$priority].";'"; + $style = "style='color:".$_SESSION['mail_priorities_color'][$fakeId].";'"; $tab[$i][$j]['label'] = _STATUS; $res_status = $status_obj->get_status_data($tab[$i][$j]['value'], $extension_icon); diff --git a/src/frontend/app/search/search-home.component.html b/src/frontend/app/search/search-home.component.html index c306637d6e4..6042d43568d 100644 --- a/src/frontend/app/search/search-home.component.html +++ b/src/frontend/app/search/search-home.component.html @@ -1,15 +1,12 @@ - <form style="margin-bottom: 0px;" ngNoForm name="choose_query" id="choose_query" method="post" action="index.php?display=true&dir=indexing_searching&page=search_adv_result"> <input type="hidden" name="meta[]" value="baskets_clause#baskets_clause#select_simple"> <input type="hidden" name="meta[]" value="welcome#welcome#welcome"> <input type="hidden" name="baskets_clause" value="true"> <mat-form-field id="searchInput" floatLabel="never" style="width:100%"> <input matInput type="text" name="welcome" placeholder="{{lang.searchMails}}" style="width:100%"> - <button mat-button matSuffix mat-icon-button aria-label="Clear" (click)="searchHome.submit();" style="opacity:0.5;"> + <button mat-button matSuffix mat-icon-button type="submit" aria-label="Clear" style="opacity:0.5;"> <mat-icon class="fa fa-search"></mat-icon> </button> </mat-form-field> - - <!--<input id="text" type="text" name="welcome" placeholder="{{lang.searchMails}}" class="searchInput" style="width:100%">--> <input #searchHome type="submit" name="submit" value="" style="display:none"> </form> -- GitLab