| Summary: | JS warning "unreachable code after return statement" | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Jonathan Druart <jonathan.druart> |
| Component: | ILL | Assignee: | Bugs List <koha-bugs> |
| Status: | NEW --- | QA Contact: | Testopia <testopia> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | pedro.amorim, tomascohen |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Crowdfunding goal: | 0 |
| Patch complexity: | --- | Documentation contact: | |
| Documentation submission: | Text to go in the release notes: | ||
| Version(s) released in: | Circulation function: | ||
| Bug Depends on: | 30719 | ||
| Bug Blocks: | |||
Easy to fix, please provide a patch! |
792 function getTitle(meta) { 793 if (meta.article_title && meta.article_title.length > 0) { 794 return 'article_title'; 795 return { 796 prop: 'article_title', 797 value: meta.article_title 798 }; 799 } else if (meta.title && meta.title.length > 0) { 800 return 'title'; 801 return { 802 prop: 'title', 803 value: meta.title 804 }; 805 } 806 };