PageRenderTime 83ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 2ms

/data/template/template/en/default/global/user-error.html.tmpl

https://github.com/andywiens/Bugzilla-Custom-CAS
Go Template | 6509 lines | 5270 code | 1239 blank | 0 comment | 0 complexity | 40e4fe2bc2fdca4d411c84c6755469e7 MD5 | raw file
  1. use utf8;
  2. #------------------------------------------------------------------------
  3. # Compiled template generated by the Template Toolkit version 2.22
  4. #------------------------------------------------------------------------
  5. Template::Document->new({
  6. METADATA => {
  7. 'modtime' => '1297790525',
  8. 'name' => 'global/user-error.html.tmpl',
  9. },
  10. BLOCK => sub {
  11. my $context = shift || die "template sub called without context\n";
  12. my $stash = $context->stash;
  13. my $output = '';
  14. my $_tt_error;
  15. eval { BLOCK: {
  16. $output .= "\n\n";
  17. $output .= "\n\n";
  18. $output .= "\n";
  19. #line 42 "template/en/default/global/user-error.html.tmpl"
  20. $output .= $context->process('global/variables.none.tmpl');
  21. $output .= "\n";
  22. #line 44 "template/en/default/global/user-error.html.tmpl"
  23. $output .= $context->process('global/field-descs.none.tmpl');
  24. $output .= "\n";
  25. #line 46 "template/en/default/global/user-error.html.tmpl"
  26. $stash->set('title', 'Error', 1);
  27. $output .= "\n";
  28. #line 1705 "template/en/default/global/user-error.html.tmpl"
  29. # CAPTURE
  30. $stash->set('error_message', do {
  31. my $output = '';
  32. #line 1704 "template/en/default/global/user-error.html.tmpl"
  33. if ($stash->get('error') eq 'account_creation_disabled') {
  34. #line 50 "template/en/default/global/user-error.html.tmpl"
  35. $stash->set('title', 'Account Creation Disabled');
  36. $output .= "\n User account creation has been disabled.\n <hr>\n New accounts must be created by an administrator. The\n maintainer is ";
  37. #line 54 "template/en/default/global/user-error.html.tmpl"
  38. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  39. $output .= ".\n";
  40. }
  41. elsif ($stash->get('error') eq 'account_creation_restricted') {
  42. #line 57 "template/en/default/global/user-error.html.tmpl"
  43. $stash->set('title', 'Account Creation Restricted');
  44. $output .= "\n User account creation has been restricted.\n <hr>\n Contact your administrator or the maintainer\n (";
  45. #line 61 "template/en/default/global/user-error.html.tmpl"
  46. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  47. $output .= ") for information about\n creating an account.\n";
  48. }
  49. elsif ($stash->get('error') eq 'account_disabled') {
  50. #line 65 "template/en/default/global/user-error.html.tmpl"
  51. $stash->set('title', 'Account Disabled');
  52. #line 66 "template/en/default/global/user-error.html.tmpl"
  53. # FILTER
  54. $output .= do {
  55. my $output = '';
  56. my $_tt_filter = $context->filter('none')
  57. || $context->throw($context->error);
  58. $output .= $stash->get('disabled_reason');
  59. &$_tt_filter($output);
  60. };
  61. $output .= "\n <hr>\n If you believe your account should be restored, please\n send email to ";
  62. #line 69 "template/en/default/global/user-error.html.tmpl"
  63. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  64. $output .= " explaining why.\n";
  65. }
  66. elsif ($stash->get('error') eq 'account_exists') {
  67. #line 72 "template/en/default/global/user-error.html.tmpl"
  68. $stash->set('title', 'Account Already Exists');
  69. $output .= "\n There is already an account with";
  70. #line 78 "template/en/default/global/user-error.html.tmpl"
  71. if ($stash->get('email')) {
  72. $output .= "\n the login name ";
  73. #line 75 "template/en/default/global/user-error.html.tmpl"
  74. # FILTER
  75. $output .= do {
  76. my $output = '';
  77. my $_tt_filter = $context->filter('html')
  78. || $context->throw($context->error);
  79. $output .= $stash->get('email');
  80. &$_tt_filter($output);
  81. };
  82. $output .= ".";
  83. }
  84. else {
  85. $output .= "\n that login name.";
  86. }
  87. $output .= "\n";
  88. }
  89. elsif ($stash->get('error') eq 'account_locked') {
  90. #line 81 "template/en/default/global/user-error.html.tmpl"
  91. $stash->set('title', 'Account Locked');
  92. $output .= "\n Your IP (";
  93. #line 82 "template/en/default/global/user-error.html.tmpl"
  94. # FILTER
  95. $output .= do {
  96. my $output = '';
  97. my $_tt_filter = $context->filter('html')
  98. || $context->throw($context->error);
  99. $output .= $stash->get('ip_addr');
  100. &$_tt_filter($output);
  101. };
  102. $output .= ") has been locked out of this\n account until ";
  103. #line 83 "template/en/default/global/user-error.html.tmpl"
  104. # FILTER
  105. $output .= do {
  106. my $output = '';
  107. my $_tt_filter = $context->filter('time')
  108. || $context->throw($context->error);
  109. $output .= $stash->get('unlock_at');
  110. &$_tt_filter($output);
  111. };
  112. $output .= ", as you have\n exceeded the maximum number of login attempts.\n";
  113. }
  114. elsif ($stash->get('error') eq 'alias_has_comma_or_space') {
  115. #line 87 "template/en/default/global/user-error.html.tmpl"
  116. $stash->set('title', 'Invalid Characters In Alias');
  117. $output .= "\n The alias you entered, <em>";
  118. #line 88 "template/en/default/global/user-error.html.tmpl"
  119. # FILTER
  120. $output .= do {
  121. my $output = '';
  122. my $_tt_filter = $context->filter('html')
  123. || $context->throw($context->error);
  124. $output .= $stash->get('alias');
  125. &$_tt_filter($output);
  126. };
  127. $output .= "</em>,\n contains one or more commas or spaces. Aliases cannot contain\n commas or spaces because those characters are used to separate\n aliases from each other in lists. Please choose an alias\n that does not contain commas and spaces.\n";
  128. }
  129. elsif ($stash->get('error') eq 'alias_in_use') {
  130. #line 95 "template/en/default/global/user-error.html.tmpl"
  131. $stash->set('title', 'Alias In Use');
  132. #line 96 "template/en/default/global/user-error.html.tmpl"
  133. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  134. $output .= " ";
  135. #line 96 "template/en/default/global/user-error.html.tmpl"
  136. # FILTER
  137. $output .= do {
  138. my $output = '';
  139. my $_tt_filter = $context->filter('none')
  140. || $context->throw($context->error);
  141. # FILTER
  142. $output .= do {
  143. my $output = '';
  144. my $_tt_filter = $context->filter('bug_link', [ $stash->get('bug_id') ])
  145. || $context->throw($context->error);
  146. $output .= $stash->get('bug_id');
  147. &$_tt_filter($output);
  148. };
  149. &$_tt_filter($output);
  150. };
  151. $output .= "\n has already taken the alias <em>";
  152. #line 97 "template/en/default/global/user-error.html.tmpl"
  153. # FILTER
  154. $output .= do {
  155. my $output = '';
  156. my $_tt_filter = $context->filter('html')
  157. || $context->throw($context->error);
  158. $output .= $stash->get('alias');
  159. &$_tt_filter($output);
  160. };
  161. $output .= "</em>.\n Please choose another one.\n";
  162. }
  163. elsif ($stash->get('error') eq 'alias_is_numeric') {
  164. #line 101 "template/en/default/global/user-error.html.tmpl"
  165. $stash->set('title', 'Alias Is Numeric');
  166. $output .= "\n You tried to give this ";
  167. #line 102 "template/en/default/global/user-error.html.tmpl"
  168. $output .= $stash->get(['terms', 0, 'bug', 0]);
  169. $output .= " the alias <em>";
  170. #line 102 "template/en/default/global/user-error.html.tmpl"
  171. # FILTER
  172. $output .= do {
  173. my $output = '';
  174. my $_tt_filter = $context->filter('html')
  175. || $context->throw($context->error);
  176. $output .= $stash->get('alias');
  177. &$_tt_filter($output);
  178. };
  179. $output .= "</em>,\n but aliases cannot be merely numbers, since they could\n then be confused with ";
  180. #line 104 "template/en/default/global/user-error.html.tmpl"
  181. $output .= $stash->get(['terms', 0, 'bug', 0]);
  182. $output .= " IDs. Please choose an\n alias containing at least one letter.\n";
  183. }
  184. elsif ($stash->get('error') eq 'alias_too_long') {
  185. #line 108 "template/en/default/global/user-error.html.tmpl"
  186. $stash->set('title', 'Alias Too Long');
  187. #line 109 "template/en/default/global/user-error.html.tmpl"
  188. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  189. $output .= " aliases cannot be longer than 20 characters.\n Please choose a shorter alias.\n";
  190. }
  191. elsif ($stash->get('error') eq 'auth_cant_create_account') {
  192. #line 113 "template/en/default/global/user-error.html.tmpl"
  193. $stash->set('title', 'Can\'t create accounts');
  194. $output .= "\n This site is using an authentication scheme which does not permit\n account creation. Please contact an administrator to get a new account\n created.\n";
  195. }
  196. elsif ($stash->get('error') eq 'auth_failure') {
  197. #line 119 "template/en/default/global/user-error.html.tmpl"
  198. $stash->set('title', 'Authorization Required');
  199. #line 120 "template/en/default/global/user-error.html.tmpl"
  200. $stash->set('admindocslinks', { 'groups.html' => 'Group Security' });
  201. $output .= "\n Sorry,";
  202. #line 124 "template/en/default/global/user-error.html.tmpl"
  203. if ($stash->get('group')) {
  204. $output .= "\n you aren't a member of the '";
  205. #line 123 "template/en/default/global/user-error.html.tmpl"
  206. # FILTER
  207. $output .= do {
  208. my $output = '';
  209. my $_tt_filter = $context->filter('html')
  210. || $context->throw($context->error);
  211. $output .= $stash->get('group');
  212. &$_tt_filter($output);
  213. };
  214. $output .= "' group,";
  215. }
  216. $output .= "\n";
  217. #line 133 "template/en/default/global/user-error.html.tmpl"
  218. if ($stash->get('reason')) {
  219. #line 127 "template/en/default/global/user-error.html.tmpl"
  220. if ($stash->get('group')) {
  221. $output .= " and ";
  222. }
  223. #line 132 "template/en/default/global/user-error.html.tmpl"
  224. if ($stash->get('reason') eq 'cant_bless') {
  225. $output .= "\n you don't have permissions to add or remove people from a group,";
  226. }
  227. elsif ($stash->get('reason') eq 'not_visible') {
  228. $output .= "\n there are visibility restrictions on certain user groups,";
  229. }
  230. }
  231. $output .= "\n";
  232. #line 135 "template/en/default/global/user-error.html.tmpl"
  233. if ($stash->get('group') || $stash->get('reason')) {
  234. $output .= " and so ";
  235. }
  236. $output .= " you are not authorized to";
  237. #line 158 "template/en/default/global/user-error.html.tmpl"
  238. if ($stash->get('action') eq 'access') {
  239. $output .= "\n access";
  240. }
  241. elsif ($stash->get('action') eq 'add') {
  242. $output .= "\n add new";
  243. }
  244. elsif ($stash->get('action') eq 'begin') {
  245. $output .= "\n begin";
  246. }
  247. elsif ($stash->get('action') eq 'modify') {
  248. $output .= "\n modify";
  249. }
  250. elsif ($stash->get('action') eq 'delete') {
  251. $output .= "\n delete";
  252. }
  253. elsif ($stash->get('action') eq 'edit') {
  254. $output .= "\n add, modify or delete";
  255. }
  256. elsif ($stash->get('action') eq 'run') {
  257. $output .= "\n run";
  258. }
  259. elsif ($stash->get('action') eq 'schedule') {
  260. $output .= "\n schedule";
  261. }
  262. elsif ($stash->get('action') eq 'use') {
  263. $output .= "\n use";
  264. }
  265. elsif ($stash->get('action') eq 'approve') {
  266. $output .= "\n approve";
  267. }
  268. else {
  269. $output .= "\n ";
  270. #line 157 "template/en/default/global/user-error.html.tmpl"
  271. $output .= $stash->get(['Hook', 0, 'process', [ 'auth_failure_action' ]]);
  272. }
  273. $output .= "\n";
  274. #line 217 "template/en/default/global/user-error.html.tmpl"
  275. if ($stash->get('object') eq 'administrative_pages') {
  276. $output .= "\n administrative pages";
  277. }
  278. elsif ($stash->get('object') eq 'attachment') {
  279. #line 167 "template/en/default/global/user-error.html.tmpl"
  280. if ($stash->get('attach_id')) {
  281. $output .= "\n attachment #";
  282. #line 164 "template/en/default/global/user-error.html.tmpl"
  283. # FILTER
  284. $output .= do {
  285. my $output = '';
  286. my $_tt_filter = $context->filter('html')
  287. || $context->throw($context->error);
  288. $output .= $stash->get('attach_id');
  289. &$_tt_filter($output);
  290. };
  291. }
  292. else {
  293. $output .= "\n this attachment";
  294. }
  295. }
  296. elsif ($stash->get('object') eq 'bugs') {
  297. $output .= "\n ";
  298. #line 169 "template/en/default/global/user-error.html.tmpl"
  299. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  300. }
  301. elsif ($stash->get('object') eq 'charts') {
  302. $output .= "\n the \"New Charts\" feature";
  303. }
  304. elsif ($stash->get('object') eq 'classifications') {
  305. $output .= "\n classifications";
  306. }
  307. elsif ($stash->get('object') eq 'components') {
  308. $output .= "\n components";
  309. }
  310. elsif ($stash->get('object') eq 'custom_fields') {
  311. $output .= "\n custom fields";
  312. }
  313. elsif ($stash->get('object') eq 'field_values') {
  314. $output .= "\n field values";
  315. }
  316. elsif ($stash->get('object') eq 'flagtypes') {
  317. $output .= "\n flag types";
  318. }
  319. elsif ($stash->get('object') eq 'group_access') {
  320. $output .= "\n group access";
  321. }
  322. elsif ($stash->get('object') eq 'groups') {
  323. $output .= "\n groups";
  324. }
  325. elsif ($stash->get('object') eq 'keywords') {
  326. $output .= "\n keywords";
  327. }
  328. elsif ($stash->get('object') eq 'milestones') {
  329. $output .= "\n milestones";
  330. }
  331. elsif ($stash->get('object') eq 'multiple_bugs') {
  332. $output .= "\n multiple ";
  333. #line 191 "template/en/default/global/user-error.html.tmpl"
  334. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  335. $output .= " at once";
  336. }
  337. elsif ($stash->get('object') eq 'parameters') {
  338. $output .= "\n parameters";
  339. }
  340. elsif ($stash->get('object') eq 'products') {
  341. $output .= "\n products";
  342. }
  343. elsif ($stash->get('object') eq 'quips') {
  344. $output .= "\n quips";
  345. }
  346. elsif ($stash->get('object') eq 'reports') {
  347. $output .= "\n whine reports";
  348. }
  349. elsif ($stash->get('object') eq 'sanity_check') {
  350. $output .= "\n a sanity check";
  351. }
  352. elsif ($stash->get('object') eq 'settings') {
  353. $output .= "\n settings";
  354. }
  355. elsif ($stash->get('object') eq 'sudo_session') {
  356. $output .= "\n a sudo session";
  357. }
  358. elsif ($stash->get('object') eq 'timetracking_summaries') {
  359. $output .= "\n time-tracking summary reports";
  360. }
  361. elsif ($stash->get('object') eq 'user') {
  362. $output .= " \n the user ";
  363. #line 210 "template/en/default/global/user-error.html.tmpl"
  364. if ($stash->get('userid')) {
  365. $output .= " with ID '";
  366. #line 209 "template/en/default/global/user-error.html.tmpl"
  367. # FILTER
  368. $output .= do {
  369. my $output = '';
  370. my $_tt_filter = $context->filter('html')
  371. || $context->throw($context->error);
  372. $output .= $stash->get('userid');
  373. &$_tt_filter($output);
  374. };
  375. $output .= "'";
  376. }
  377. else {
  378. $output .= "you specified ";
  379. }
  380. }
  381. elsif ($stash->get('object') eq 'users') {
  382. $output .= "\n users";
  383. }
  384. elsif ($stash->get('object') eq 'versions') {
  385. $output .= "\n versions";
  386. }
  387. elsif ($stash->get('object') eq 'workflow') {
  388. $output .= "\n the workflow";
  389. }
  390. $output .= ".\n";
  391. #line 219 "template/en/default/global/user-error.html.tmpl"
  392. $output .= $stash->get(['Hook', 0, 'process', [ 'auth_failure' ]]);
  393. $output .= "\n";
  394. }
  395. elsif ($stash->get('error') eq 'attachment_deletion_disabled') {
  396. #line 222 "template/en/default/global/user-error.html.tmpl"
  397. $stash->set('title', 'Attachment Deletion Disabled');
  398. $output .= "\n Attachment deletion is disabled on this installation.\n";
  399. }
  400. elsif ($stash->get('error') eq 'attachment_illegal_url') {
  401. #line 226 "template/en/default/global/user-error.html.tmpl"
  402. $stash->set('title', 'Illegal Attachment URL');
  403. $output .= "\n <em>";
  404. #line 227 "template/en/default/global/user-error.html.tmpl"
  405. # FILTER
  406. $output .= do {
  407. my $output = '';
  408. my $_tt_filter = $context->filter('html')
  409. || $context->throw($context->error);
  410. $output .= $stash->get('url');
  411. &$_tt_filter($output);
  412. };
  413. $output .= "</em> is not a legal URL for attachments.\n It must start either with http://, https:// or ftp://.\n";
  414. }
  415. elsif ($stash->get('error') eq 'attachment_removed') {
  416. #line 231 "template/en/default/global/user-error.html.tmpl"
  417. $stash->set('title', 'Attachment Removed');
  418. $output .= "\n The attachment you are attempting to access has been removed.\n";
  419. }
  420. elsif ($stash->get('error') eq 'bug_access_denied') {
  421. #line 235 "template/en/default/global/user-error.html.tmpl"
  422. $stash->set('title', 'Access Denied');
  423. #line 236 "template/en/default/global/user-error.html.tmpl"
  424. $stash->set('admindocslinks', { 'groups.html' => 'Group Security' });
  425. $output .= "\n You are not authorized to access ";
  426. #line 237 "template/en/default/global/user-error.html.tmpl"
  427. $output .= $stash->get(['terms', 0, 'bug', 0]);
  428. $output .= " #";
  429. #line 237 "template/en/default/global/user-error.html.tmpl"
  430. # FILTER
  431. $output .= do {
  432. my $output = '';
  433. my $_tt_filter = $context->filter('html')
  434. || $context->throw($context->error);
  435. $output .= $stash->get('bug_id');
  436. &$_tt_filter($output);
  437. };
  438. $output .= ".\n";
  439. }
  440. elsif ($stash->get('error') eq 'bug_access_query') {
  441. #line 240 "template/en/default/global/user-error.html.tmpl"
  442. $stash->set('title', 'Access Denied');
  443. #line 241 "template/en/default/global/user-error.html.tmpl"
  444. $stash->set('docslinks', { 'myaccount.html' => 'Creating an account' });
  445. $output .= "\n You are not authorized to access ";
  446. #line 242 "template/en/default/global/user-error.html.tmpl"
  447. $output .= $stash->get(['terms', 0, 'bug', 0]);
  448. $output .= " #";
  449. #line 242 "template/en/default/global/user-error.html.tmpl"
  450. # FILTER
  451. $output .= do {
  452. my $output = '';
  453. my $_tt_filter = $context->filter('html')
  454. || $context->throw($context->error);
  455. $output .= $stash->get('bug_id');
  456. &$_tt_filter($output);
  457. };
  458. $output .= ".\n To see this ";
  459. #line 243 "template/en/default/global/user-error.html.tmpl"
  460. $output .= $stash->get(['terms', 0, 'bug', 0]);
  461. $output .= ", you must\n first <a href=\"show_bug.cgi?id=";
  462. #line 245 "template/en/default/global/user-error.html.tmpl"
  463. # FILTER
  464. $output .= do {
  465. my $output = '';
  466. my $_tt_filter = $context->filter('url_quote')
  467. || $context->throw($context->error);
  468. $output .= $stash->get('bug_id');
  469. &$_tt_filter($output);
  470. };
  471. $output .= "&amp;GoAheadAndLogIn=1\">log\n in to an account</a> with the appropriate permissions.\n";
  472. }
  473. elsif ($stash->get('error') eq 'bug_url_invalid') {
  474. #line 1 "template/en/default/global/user-error.html.tmpl"
  475. $stash->set('title', ("Invalid " . $stash->get(['terms', 0, 'Bug', 0]) . " URL"));
  476. $output .= "\n <code>";
  477. #line 250 "template/en/default/global/user-error.html.tmpl"
  478. # FILTER
  479. $output .= do {
  480. my $output = '';
  481. my $_tt_filter = $context->filter('html')
  482. || $context->throw($context->error);
  483. $output .= $stash->get('url');
  484. &$_tt_filter($output);
  485. };
  486. $output .= "</code> is not a valid URL to ";
  487. #line 250 "template/en/default/global/user-error.html.tmpl"
  488. $output .= $stash->get(['terms', 0, 'abug', 0]);
  489. $output .= ".";
  490. #line 266 "template/en/default/global/user-error.html.tmpl"
  491. if ($stash->get('reason') eq 'http') {
  492. $output .= "\n URLs must start with \"http\" or \"https\".";
  493. }
  494. elsif ($stash->get('reason') eq 'path_only') {
  495. $output .= "\n You must specify a full URL.";
  496. }
  497. elsif ($stash->get('reason') eq 'show_bug') {
  498. $output .= "\n ";
  499. #line 256 "template/en/default/global/user-error.html.tmpl"
  500. # FILTER
  501. $output .= do {
  502. my $output = '';
  503. my $_tt_filter = $context->filter('html')
  504. || $context->throw($context->error);
  505. $output .= $stash->get(['field_descs', 0, 'see_also', 0]);
  506. &$_tt_filter($output);
  507. };
  508. $output .= " URLs should point to one of:\n <ul>\n <li><code>show_bug.cgi</code> in a ";
  509. #line 258 "template/en/default/global/user-error.html.tmpl"
  510. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  511. $output .= "\n installation.</li>\n <li>A b";
  512. $output .= "ug on launchpad.net</li>\n <li>An issue on code.google.com.</li>\n <li>A b";
  513. $output .= "ug on b";
  514. $output .= "ugs.debian.org.</li>\n </ul>";
  515. }
  516. elsif ($stash->get('reason') eq 'id') {
  517. $output .= "\n There is no valid ";
  518. #line 265 "template/en/default/global/user-error.html.tmpl"
  519. $output .= $stash->get(['terms', 0, 'bug', 0]);
  520. $output .= " id in that URL.";
  521. }
  522. $output .= "\n";
  523. }
  524. elsif ($stash->get('error') eq 'bug_url_too_long') {
  525. #line 1 "template/en/default/global/user-error.html.tmpl"
  526. $stash->set('title', ("Invalid " . $stash->get(['terms', 0, 'Bug', 0]) . " URL"));
  527. #line 270 "template/en/default/global/user-error.html.tmpl"
  528. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  529. $output .= " URLs can not be longer than \n ";
  530. #line 271 "template/en/default/global/user-error.html.tmpl"
  531. # FILTER
  532. $output .= do {
  533. my $output = '';
  534. my $_tt_filter = $context->filter('none')
  535. || $context->throw($context->error);
  536. $output .= '255';
  537. &$_tt_filter($output);
  538. };
  539. $output .= " characters long.\n <code>";
  540. #line 272 "template/en/default/global/user-error.html.tmpl"
  541. # FILTER
  542. $output .= do {
  543. my $output = '';
  544. my $_tt_filter = $context->filter('html')
  545. || $context->throw($context->error);
  546. $output .= $stash->get('url');
  547. &$_tt_filter($output);
  548. };
  549. $output .= "</code> is too long.\n";
  550. }
  551. elsif ($stash->get('error') eq 'buglist_parameters_required') {
  552. #line 275 "template/en/default/global/user-error.html.tmpl"
  553. $stash->set('title', 'Parameters Required');
  554. #line 1 "template/en/default/global/user-error.html.tmpl"
  555. $stash->set('docslinks', { 'query.html' => ("Searching for " . $stash->get(['terms', 0, 'bugs', 0])), 'query.html#list' => ($stash->get(['terms', 0, 'Bug', 0]) . " lists") });
  556. $output .= "\n You may not search, or create saved searches, without any search terms.\n";
  557. }
  558. elsif ($stash->get('error') eq 'chart_too_large') {
  559. #line 281 "template/en/default/global/user-error.html.tmpl"
  560. $stash->set('title', 'Chart Too Large');
  561. $output .= "\n Sorry, but 2000 x 2000 is the maximum size for a chart.\n";
  562. }
  563. elsif ($stash->get('error') eq 'comment_id_invalid') {
  564. #line 285 "template/en/default/global/user-error.html.tmpl"
  565. # FILTER
  566. $output .= do {
  567. my $output = '';
  568. my $_tt_filter = $context->filter('html')
  569. || $context->throw($context->error);
  570. $output .= $stash->get('id');
  571. &$_tt_filter($output);
  572. };
  573. $output .= " is not a valid comment id.\n";
  574. }
  575. elsif ($stash->get('error') eq 'comment_invalid_isprivate') {
  576. $output .= "\n You tried to modify the privacy of comment id ";
  577. #line 288 "template/en/default/global/user-error.html.tmpl"
  578. # FILTER
  579. $output .= do {
  580. my $output = '';
  581. my $_tt_filter = $context->filter('html')
  582. || $context->throw($context->error);
  583. $output .= $stash->get('id');
  584. &$_tt_filter($output);
  585. };
  586. $output .= ",\n but that is not a valid comment on this ";
  587. #line 289 "template/en/default/global/user-error.html.tmpl"
  588. $output .= $stash->get(['terms', 0, 'bug', 0]);
  589. $output .= ".\n";
  590. }
  591. elsif ($stash->get('error') eq 'comment_is_private') {
  592. $output .= "\n Comment id ";
  593. #line 292 "template/en/default/global/user-error.html.tmpl"
  594. # FILTER
  595. $output .= do {
  596. my $output = '';
  597. my $_tt_filter = $context->filter('html')
  598. || $context->throw($context->error);
  599. $output .= $stash->get('id');
  600. &$_tt_filter($output);
  601. };
  602. $output .= " is private.\n";
  603. }
  604. elsif ($stash->get('error') eq 'comment_required') {
  605. #line 295 "template/en/default/global/user-error.html.tmpl"
  606. $stash->set('title', 'Comment Required');
  607. $output .= "\n You have to specify a";
  608. #line 304 "template/en/default/global/user-error.html.tmpl"
  609. if ($stash->get('old') && $stash->get('new')) {
  610. $output .= "\n <b>comment</b> when changing the status of ";
  611. #line 298 "template/en/default/global/user-error.html.tmpl"
  612. $output .= $stash->get(['terms', 0, 'abug', 0]);
  613. $output .= " from\n ";
  614. #line 299 "template/en/default/global/user-error.html.tmpl"
  615. # FILTER
  616. $output .= do {
  617. my $output = '';
  618. my $_tt_filter = $context->filter('html')
  619. || $context->throw($context->error);
  620. $output .= $stash->get(['old', 0, 'name', 0]);
  621. &$_tt_filter($output);
  622. };
  623. $output .= " to ";
  624. #line 299 "template/en/default/global/user-error.html.tmpl"
  625. # FILTER
  626. $output .= do {
  627. my $output = '';
  628. my $_tt_filter = $context->filter('html')
  629. || $context->throw($context->error);
  630. $output .= $stash->get(['new', 0, 'name', 0]);
  631. &$_tt_filter($output);
  632. };
  633. $output .= ".";
  634. }
  635. elsif ($stash->get('new')) {
  636. $output .= "\n description for this ";
  637. #line 301 "template/en/default/global/user-error.html.tmpl"
  638. $output .= $stash->get(['terms', 0, 'bug', 0]);
  639. $output .= ".";
  640. }
  641. else {
  642. $output .= "\n <b>comment</b> on this change.";
  643. }
  644. $output .= "\n";
  645. }
  646. elsif ($stash->get('error') eq 'comment_too_long') {
  647. #line 307 "template/en/default/global/user-error.html.tmpl"
  648. $stash->set('title', 'Comment Too Long');
  649. $output .= "\n Comments cannot be longer than \n ";
  650. #line 309 "template/en/default/global/user-error.html.tmpl"
  651. # FILTER
  652. $output .= do {
  653. my $output = '';
  654. my $_tt_filter = $context->filter('html')
  655. || $context->throw($context->error);
  656. $output .= '65535';
  657. &$_tt_filter($output);
  658. };
  659. $output .= " characters.\n";
  660. }
  661. elsif ($stash->get('error') eq 'auth_classification_not_enabled') {
  662. #line 312 "template/en/default/global/user-error.html.tmpl"
  663. $stash->set('title', 'Classification Not Enabled');
  664. $output .= "\n Sorry, classification is not enabled.\n";
  665. }
  666. elsif ($stash->get('error') eq 'classification_name_too_long') {
  667. #line 316 "template/en/default/global/user-error.html.tmpl"
  668. $stash->set('title', 'Classification Name Too Long');
  669. $output .= "\n The name of a classification is limited to ";
  670. #line 317 "template/en/default/global/user-error.html.tmpl"
  671. # FILTER
  672. $output .= do {
  673. my $output = '';
  674. my $_tt_filter = $context->filter('html')
  675. || $context->throw($context->error);
  676. $output .= '64';
  677. &$_tt_filter($output);
  678. };
  679. $output .= "\n characters. '";
  680. #line 318 "template/en/default/global/user-error.html.tmpl"
  681. # FILTER
  682. $output .= do {
  683. my $output = '';
  684. my $_tt_filter = $context->filter('html')
  685. || $context->throw($context->error);
  686. $output .= $stash->get('name');
  687. &$_tt_filter($output);
  688. };
  689. $output .= "' is too long (";
  690. #line 318 "template/en/default/global/user-error.html.tmpl"
  691. $output .= $stash->get(['name', 0, 'length', 0]);
  692. $output .= " characters).\n";
  693. }
  694. elsif ($stash->get('error') eq 'classification_not_specified') {
  695. #line 321 "template/en/default/global/user-error.html.tmpl"
  696. $stash->set('title', 'You Must Supply A Classification Name');
  697. $output .= "\n You must enter a classification name.\n";
  698. }
  699. elsif ($stash->get('error') eq 'classification_already_exists') {
  700. #line 325 "template/en/default/global/user-error.html.tmpl"
  701. $stash->set('title', 'Classification Already Exists');
  702. $output .= "\n A classification with the name '";
  703. #line 326 "template/en/default/global/user-error.html.tmpl"
  704. # FILTER
  705. $output .= do {
  706. my $output = '';
  707. my $_tt_filter = $context->filter('html')
  708. || $context->throw($context->error);
  709. $output .= $stash->get('name');
  710. &$_tt_filter($output);
  711. };
  712. $output .= "' already exists.\n";
  713. }
  714. elsif ($stash->get('error') eq 'classification_invalid_sortkey') {
  715. #line 329 "template/en/default/global/user-error.html.tmpl"
  716. $stash->set('title', 'Invalid Sortkey for Classification');
  717. $output .= "\n The sortkey '";
  718. #line 330 "template/en/default/global/user-error.html.tmpl"
  719. # FILTER
  720. $output .= do {
  721. my $output = '';
  722. my $_tt_filter = $context->filter('html')
  723. || $context->throw($context->error);
  724. $output .= $stash->get('sortkey');
  725. &$_tt_filter($output);
  726. };
  727. $output .= "' is invalid. It must be an\n integer between 0 and ";
  728. #line 331 "template/en/default/global/user-error.html.tmpl"
  729. # FILTER
  730. $output .= do {
  731. my $output = '';
  732. my $_tt_filter = $context->filter('html')
  733. || $context->throw($context->error);
  734. $output .= '32767';
  735. &$_tt_filter($output);
  736. };
  737. $output .= ".\n";
  738. }
  739. elsif ($stash->get('error') eq 'classification_not_deletable') {
  740. #line 334 "template/en/default/global/user-error.html.tmpl"
  741. $stash->set('title', 'Default Classification Can Not Be Deleted');
  742. $output .= "\n You can not delete the default classification\n";
  743. }
  744. elsif ($stash->get('error') eq 'classification_has_products') {
  745. $output .= "\n Sorry, there are products for this classification. You\n must reassign those products to another classification before you\n can delete this one.\n";
  746. }
  747. elsif ($stash->get('error') eq 'component_already_exists') {
  748. #line 343 "template/en/default/global/user-error.html.tmpl"
  749. $stash->set('title', 'Component Already Exists');
  750. $output .= "\n The <em>";
  751. #line 344 "template/en/default/global/user-error.html.tmpl"
  752. # FILTER
  753. $output .= do {
  754. my $output = '';
  755. my $_tt_filter = $context->filter('html')
  756. || $context->throw($context->error);
  757. $output .= $stash->get(['product', 0, 'name', 0]);
  758. &$_tt_filter($output);
  759. };
  760. $output .= "</em> product already has\n a component named <em>";
  761. #line 345 "template/en/default/global/user-error.html.tmpl"
  762. # FILTER
  763. $output .= do {
  764. my $output = '';
  765. my $_tt_filter = $context->filter('html')
  766. || $context->throw($context->error);
  767. $output .= $stash->get('name');
  768. &$_tt_filter($output);
  769. };
  770. $output .= "</em>.\n";
  771. }
  772. elsif ($stash->get('error') eq 'component_blank_description') {
  773. #line 348 "template/en/default/global/user-error.html.tmpl"
  774. $stash->set('title', 'Blank Component Description Not Allowed');
  775. $output .= "\n You must enter a non-blank description for this component.\n";
  776. }
  777. elsif ($stash->get('error') eq 'component_blank_name') {
  778. #line 352 "template/en/default/global/user-error.html.tmpl"
  779. $stash->set('title', 'Blank Component Name Not Allowed');
  780. $output .= "\n You must enter a name for this new component.\n";
  781. }
  782. elsif ($stash->get('error') eq 'component_has_bugs') {
  783. #line 356 "template/en/default/global/user-error.html.tmpl"
  784. # CAPTURE
  785. $stash->set('title', do {
  786. my $output = '';
  787. $output .= "Component has ";
  788. #line 356 "template/en/default/global/user-error.html.tmpl"
  789. $output .= $stash->get(['terms', 0, 'Bugs', 0]);
  790. $output;
  791. });
  792. $output .= "\n There are ";
  793. #line 357 "template/en/default/global/user-error.html.tmpl"
  794. # FILTER
  795. $output .= do {
  796. my $output = '';
  797. my $_tt_filter = $context->filter('html')
  798. || $context->throw($context->error);
  799. $output .= $stash->get('nb');
  800. &$_tt_filter($output);
  801. };
  802. $output .= " ";
  803. #line 357 "template/en/default/global/user-error.html.tmpl"
  804. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  805. $output .= " entered for this component!\n You must reassign those ";
  806. #line 358 "template/en/default/global/user-error.html.tmpl"
  807. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  808. $output .= " to another component before you\n can delete this one.\n";
  809. }
  810. elsif ($stash->get('error') eq 'component_name_too_long') {
  811. #line 362 "template/en/default/global/user-error.html.tmpl"
  812. $stash->set('title', 'Component Name Is Too Long');
  813. $output .= "\n The name of a component is limited to ";
  814. #line 363 "template/en/default/global/user-error.html.tmpl"
  815. # FILTER
  816. $output .= do {
  817. my $output = '';
  818. my $_tt_filter = $context->filter('html')
  819. || $context->throw($context->error);
  820. $output .= '64';
  821. &$_tt_filter($output);
  822. };
  823. $output .= "\n characters. '";
  824. #line 364 "template/en/default/global/user-error.html.tmpl"
  825. # FILTER
  826. $output .= do {
  827. my $output = '';
  828. my $_tt_filter = $context->filter('html')
  829. || $context->throw($context->error);
  830. $output .= $stash->get('name');
  831. &$_tt_filter($output);
  832. };
  833. $output .= "' is too long (";
  834. #line 364 "template/en/default/global/user-error.html.tmpl"
  835. $output .= $stash->get(['name', 0, 'length', 0]);
  836. $output .= " characters).\n";
  837. }
  838. elsif ($stash->get('error') eq 'component_need_initialowner') {
  839. #line 367 "template/en/default/global/user-error.html.tmpl"
  840. $stash->set('title', 'Component Requires Default Assignee');
  841. $output .= "\n A default assignee is required for this component.\n";
  842. }
  843. elsif ($stash->get('error') eq 'customfield_nonexistent') {
  844. #line 371 "template/en/default/global/user-error.html.tmpl"
  845. $stash->set('title', 'Unknown Custom Field');
  846. $output .= "\n There is no custom field with the name '";
  847. #line 372 "template/en/default/global/user-error.html.tmpl"
  848. # FILTER
  849. $output .= do {
  850. my $output = '';
  851. my $_tt_filter = $context->filter('html')
  852. || $context->throw($context->error);
  853. $output .= $stash->get('name');
  854. &$_tt_filter($output);
  855. };
  856. $output .= "'.\n";
  857. }
  858. elsif ($stash->get('error') eq 'customfield_not_obsolete') {
  859. #line 375 "template/en/default/global/user-error.html.tmpl"
  860. $stash->set('title', 'Custom Field Not Obsolete');
  861. $output .= "\n The custom field '";
  862. #line 376 "template/en/default/global/user-error.html.tmpl"
  863. # FILTER
  864. $output .= do {
  865. my $output = '';
  866. my $_tt_filter = $context->filter('html')
  867. || $context->throw($context->error);
  868. $output .= $stash->get('name');
  869. &$_tt_filter($output);
  870. };
  871. $output .= "' is not obsolete.\n Please obsolete a custom field before attempting to delete it.\n";
  872. }
  873. elsif ($stash->get('error') eq 'customfield_has_activity') {
  874. #line 380 "template/en/default/global/user-error.html.tmpl"
  875. $stash->set('title', 'Custom Field Has Activity');
  876. $output .= "\n The custom field '";
  877. #line 381 "template/en/default/global/user-error.html.tmpl"
  878. # FILTER
  879. $output .= do {
  880. my $output = '';
  881. my $_tt_filter = $context->filter('html')
  882. || $context->throw($context->error);
  883. $output .= $stash->get('name');
  884. &$_tt_filter($output);
  885. };
  886. $output .= "' cannot be deleted because\n it has recorded activity.\n";
  887. }
  888. elsif ($stash->get('error') eq 'customfield_has_contents') {
  889. #line 385 "template/en/default/global/user-error.html.tmpl"
  890. $stash->set('title', 'Custom Field Has Contents');
  891. $output .= "\n The custom field '";
  892. #line 386 "template/en/default/global/user-error.html.tmpl"
  893. # FILTER
  894. $output .= do {
  895. my $output = '';
  896. my $_tt_filter = $context->filter('html')
  897. || $context->throw($context->error);
  898. $output .= $stash->get('name');
  899. &$_tt_filter($output);
  900. };
  901. $output .= "' cannot be deleted because\n at least one ";
  902. #line 387 "template/en/default/global/user-error.html.tmpl"
  903. $output .= $stash->get(['terms', 0, 'bug', 0]);
  904. $output .= " has a non empty value for this field.\n";
  905. }
  906. elsif ($stash->get('error') eq 'dependency_loop_multi') {
  907. #line 390 "template/en/default/global/user-error.html.tmpl"
  908. $stash->set('title', 'Dependency Loop Detected');
  909. $output .= "\n The following ";
  910. #line 391 "template/en/default/global/user-error.html.tmpl"
  911. $output .= $stash->get(['terms', 0, 'bug', 0]);
  912. $output .= "(s) would appear on both the \"depends on\"\n and \"blocks\" parts of the dependency tree if these changes\n are committed:";
  913. #line 396 "template/en/default/global/user-error.html.tmpl"
  914. # FOREACH
  915. do {
  916. my ($_tt_value, $_tt_error, $_tt_oldloop);
  917. my $_tt_list = $stash->get('deps');
  918. unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {
  919. $_tt_list = Template::Config->iterator($_tt_list)
  920. || die $Template::Config::ERROR, "\n";
  921. }
  922. ($_tt_value, $_tt_error) = $_tt_list->get_first();
  923. eval { $_tt_oldloop = $stash->get('loop') };
  924. $stash->set('loop', $_tt_list);
  925. eval {
  926. FOR1: while (! $_tt_error) {
  927. $stash->{'dep'} = $_tt_value;
  928. $output .= "\n ";
  929. #line 395 "template/en/default/global/user-error.html.tmpl"
  930. # FILTER
  931. $output .= do {
  932. my $output = '';
  933. my $_tt_filter = $context->filter('none')
  934. || $context->throw($context->error);
  935. # FILTER
  936. $output .= do {
  937. my $output = '';
  938. my $_tt_filter = $context->filter('bug_link', [ $stash->get('dep') ])
  939. || $context->throw($context->error);
  940. $output .= $stash->get('dep');
  941. &$_tt_filter($output);
  942. };
  943. &$_tt_filter($output);
  944. };
  945. ;
  946. ($_tt_value, $_tt_error) = $_tt_list->get_next();
  947. }
  948. };
  949. $stash->set('loop', $_tt_oldloop);
  950. die $@ if $@;
  951. $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;
  952. die $_tt_error if $_tt_error;
  953. };
  954. $output .= ".\n This would create a circular dependency, which is not allowed.\n";
  955. }
  956. elsif ($stash->get('error') eq 'dependency_loop_single') {
  957. #line 400 "template/en/default/global/user-error.html.tmpl"
  958. $stash->set('title', 'Dependency Loop Detected');
  959. $output .= "\n You can't make ";
  960. #line 401 "template/en/default/global/user-error.html.tmpl"
  961. $output .= $stash->get(['terms', 0, 'abug', 0]);
  962. $output .= " block itself or depend on itself.\n";
  963. }
  964. elsif ($stash->get('error') eq 'dupe_id_required') {
  965. #line 1 "template/en/default/global/user-error.html.tmpl"
  966. $stash->set('title', ("Duplicate " . $stash->get(['terms', 0, 'Bug', 0]) . " Id Required"));
  967. $output .= "\n You must specify ";
  968. #line 405 "template/en/default/global/user-error.html.tmpl"
  969. $output .= $stash->get(['terms', 0, 'abug', 0]);
  970. $output .= " id to mark this ";
  971. #line 405 "template/en/default/global/user-error.html.tmpl"
  972. $output .= $stash->get(['terms', 0, 'bug', 0]);
  973. $output .= "\n as a duplicate of.\n";
  974. }
  975. elsif ($stash->get('error') eq 'dupe_not_allowed') {
  976. #line 1 "template/en/default/global/user-error.html.tmpl"
  977. $stash->set('title', ("Cannot mark " . $stash->get(['terms', 0, 'bugs', 0]) . " as duplicates"));
  978. $output .= "\n You cannot mark ";
  979. #line 410 "template/en/default/global/user-error.html.tmpl"
  980. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  981. $output .= " as duplicates when\n changing several ";
  982. #line 411 "template/en/default/global/user-error.html.tmpl"
  983. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  984. $output .= " at once.\n";
  985. }
  986. elsif ($stash->get('error') eq 'dupe_loop_detected') {
  987. #line 414 "template/en/default/global/user-error.html.tmpl"
  988. $stash->set('title', 'Loop detected among duplicates');
  989. $output .= "\n You cannot mark ";
  990. #line 415 "template/en/default/global/user-error.html.tmpl"
  991. $output .= $stash->get(['terms', 0, 'bug', 0]);
  992. $output .= " ";
  993. #line 415 "template/en/default/global/user-error.html.tmpl"
  994. # FILTER
  995. $output .= do {
  996. my $output = '';
  997. my $_tt_filter = $context->filter('html')
  998. || $context->throw($context->error);
  999. $output .= $stash->get('bug_id');
  1000. &$_tt_filter($output);
  1001. };
  1002. $output .= " as\n a duplicate of";
  1003. #line 422 "template/en/default/global/user-error.html.tmpl"
  1004. if ($stash->get('dupe_of') eq $stash->get('bug_id')) {
  1005. $output .= "\n itself";
  1006. }
  1007. else {
  1008. $output .= "\n ";
  1009. #line 420 "template/en/default/global/user-error.html.tmpl"
  1010. $output .= $stash->get(['terms', 0, 'bug', 0]);
  1011. $output .= " ";
  1012. #line 420 "template/en/default/global/user-error.html.tmpl"
  1013. # FILTER
  1014. $output .= do {
  1015. my $output = '';
  1016. my $_tt_filter = $context->filter('html')
  1017. || $context->throw($context->error);
  1018. $output .= $stash->get('dupe_of');
  1019. &$_tt_filter($output);
  1020. };
  1021. $output .= ", because it\n would create a duplicate loop";
  1022. }
  1023. $output .= ".\n";
  1024. }
  1025. elsif ($stash->get('error') eq 'email_change_in_progress') {
  1026. #line 425 "template/en/default/global/user-error.html.tmpl"
  1027. $stash->set('title', 'Email Change Already In Progress');
  1028. $output .= "\n Email change already in progress; please check your email.\n";
  1029. }
  1030. elsif ($stash->get('error') eq 'email_confirmation_failed') {
  1031. #line 429 "template/en/default/global/user-error.html.tmpl"
  1032. $stash->set('title', 'Email Address Confirmation Failed');
  1033. $output .= "\n Email address confirmation failed.\n";
  1034. }
  1035. elsif ($stash->get('error') eq 'email_no_text_plain') {
  1036. $output .= "\n Your message did not contain any text.";
  1037. #line 433 "template/en/default/global/user-error.html.tmpl"
  1038. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  1039. $output .= " does not\n accept HTML-only email, or HTML email with attachments.\n";
  1040. }
  1041. elsif ($stash->get('error') eq 'empty_group_description') {
  1042. #line 437 "template/en/default/global/user-error.html.tmpl"
  1043. $stash->set('title', 'The group description can not be empty');
  1044. $output .= "\n You must enter a description for the group.\n";
  1045. }
  1046. elsif ($stash->get('error') eq 'empty_group_name') {
  1047. #line 441 "template/en/default/global/user-error.html.tmpl"
  1048. $stash->set('title', 'The group name can not be empty');
  1049. $output .= "\n You must enter a name for the group.\n ";
  1050. }
  1051. elsif ($stash->get('error') eq 'entry_access_denied') {
  1052. #line 445 "template/en/default/global/user-error.html.tmpl"
  1053. $stash->set('title', 'Permission Denied');
  1054. #line 446 "template/en/default/global/user-error.html.tmpl"
  1055. $stash->set('admindocslinks', { 'groups.html' => 'Group Security' });
  1056. $output .= "\n Sorry, either the product <em>";
  1057. #line 447 "template/en/default/global/user-error.html.tmpl"
  1058. # FILTER
  1059. $output .= do {
  1060. my $output = '';
  1061. my $_tt_filter = $context->filter('html')
  1062. || $context->throw($context->error);
  1063. $output .= $stash->get('product');
  1064. &$_tt_filter($output);
  1065. };
  1066. $output .= "</em>\n does not exist or you aren't authorized to\n enter ";
  1067. #line 449 "template/en/default/global/user-error.html.tmpl"
  1068. $output .= $stash->get(['terms', 0, 'abug', 0]);
  1069. $output .= " into it.\n";
  1070. }
  1071. elsif ($stash->get('error') eq 'extension_create_no_name') {
  1072. $output .= "\n You must specify a name for your extension, as an argument to this script.\n";
  1073. }
  1074. elsif ($stash->get('error') eq 'extension_first_letter_caps') {
  1075. $output .= "\n The first letter of your extension's name must be a capital letter.\n (You specified '";
  1076. #line 456 "template/en/default/global/user-error.html.tmpl"
  1077. # FILTER
  1078. $output .= do {
  1079. my $output = '';
  1080. my $_tt_filter = $context->filter('html')
  1081. || $context->throw($context->error);
  1082. $output .= $stash->get('name');
  1083. &$_tt_filter($output);
  1084. };
  1085. $output .= "'.)\n";
  1086. }
  1087. elsif ($stash->get('error') eq 'field_already_exists') {
  1088. #line 459 "template/en/default/global/user-error.html.tmpl"
  1089. $stash->set('title', 'Field Already Exists');
  1090. $output .= "\n The field '";
  1091. #line 460 "template/en/default/global/user-error.html.tmpl"
  1092. # FILTER
  1093. $output .= do {
  1094. my $output = '';
  1095. my $_tt_filter = $context->filter('html')
  1096. || $context->throw($context->error);
  1097. $output .= $stash->get(['field', 0, 'name', 0]);
  1098. &$_tt_filter($output);
  1099. };
  1100. $output .= "' \n (";
  1101. #line 461 "template/en/default/global/user-error.html.tmpl"
  1102. # FILTER
  1103. $output .= do {
  1104. my $output = '';
  1105. my $_tt_filter = $context->filter('html')
  1106. || $context->throw($context->error);
  1107. $output .= $stash->get(['field', 0, 'description', 0]);
  1108. &$_tt_filter($output);
  1109. };
  1110. $output .= ") already exists. Please\n choose another name.\n";
  1111. }
  1112. elsif ($stash->get('error') eq 'field_cant_control_self') {
  1113. #line 465 "template/en/default/global/user-error.html.tmpl"
  1114. $stash->set('title', 'Field Can\'t Control Itself');
  1115. $output .= "\n The ";
  1116. #line 466 "template/en/default/global/user-error.html.tmpl"
  1117. # FILTER
  1118. $output .= do {
  1119. my $output = '';
  1120. my $_tt_filter = $context->filter('html')
  1121. || $context->throw($context->error);
  1122. $output .= $stash->get(['field', 0, 'description', 0]);
  1123. &$_tt_filter($output);
  1124. };
  1125. $output .= " field can't be set to control \n itself.\n";
  1126. }
  1127. elsif ($stash->get('error') eq 'field_control_must_be_select') {
  1128. #line 470 "template/en/default/global/user-error.html.tmpl"
  1129. $stash->set('title', 'Invalid Field Type Selected');
  1130. $output .= "\n Only drop-down and multi-select fields can be used to control\n the visibility/values of other fields. ";
  1131. #line 472 "template/en/default/global/user-error.html.tmpl"
  1132. # FILTER
  1133. $output .= do {
  1134. my $output = '';
  1135. my $_tt_filter = $context->filter('html')
  1136. || $context->throw($context->error);
  1137. $output .= $stash->get(['field', 0, 'description', 0]);
  1138. &$_tt_filter($output);
  1139. };
  1140. $output .= "\n is not the right type of field.\n";
  1141. }
  1142. elsif ($stash->get('error') eq 'field_invalid_name') {
  1143. #line 476 "template/en/default/global/user-error.html.tmpl"
  1144. $stash->set('title', 'Invalid Field Name');
  1145. $output .= "\n '";
  1146. #line 477 "template/en/default/global/user-error.html.tmpl"
  1147. # FILTER
  1148. $output .= do {
  1149. my $output = '';
  1150. my $_tt_filter = $context->filter('html')
  1151. || $context->throw($context->error);
  1152. $output .= $stash->get('name');
  1153. &$_tt_filter($output);
  1154. };
  1155. $output .= "' is not a valid name for a field.\n A name may contain only letters, numbers, and the underscore character.\n";
  1156. }
  1157. elsif ($stash->get('error') eq 'field_invalid_sortkey') {
  1158. #line 481 "template/en/default/global/user-error.html.tmpl"
  1159. $stash->set('title', 'Invalid Sortkey for Field');
  1160. $output .= "\n The sortkey ";
  1161. #line 482 "template/en/default/global/user-error.html.tmpl"
  1162. # FILTER
  1163. $output .= do {
  1164. my $output = '';
  1165. my $_tt_filter = $context->filter('html')
  1166. || $context->throw($context->error);
  1167. $output .= $stash->get('sortkey');
  1168. &$_tt_filter($output);
  1169. };
  1170. $output .= " that you have provided for\n this field is not a valid positive integer.\n";
  1171. }
  1172. elsif ($stash->get('error') eq 'field_missing_description') {
  1173. #line 486 "template/en/default/global/user-error.html.tmpl"
  1174. $stash->set('title', 'Missing Description for Field');
  1175. $output .= "\n You must enter a description for this field.\n";
  1176. }
  1177. elsif ($stash->get('error') eq 'field_missing_name') {
  1178. #line 490 "template/en/default/global/user-error.html.tmpl"
  1179. $stash->set('title', 'Missing Name for Field');
  1180. $output .= "\n You must enter a name for this field.\n";
  1181. }
  1182. elsif ($stash->get('error') eq 'field_value_control_select_only') {
  1183. #line 494 "template/en/default/global/user-error.html.tmpl"
  1184. $stash->set('title', 'Invalid Value Control Field');
  1185. $output .= "\n Only Drop-Down or Multi-Select fields can have a field that\n controls their values.\n";
  1186. }
  1187. elsif ($stash->get('error') eq 'fieldname_invalid') {
  1188. #line 499 "template/en/default/global/user-error.html.tmpl"
  1189. $stash->set('title', 'Specified Field Does Not Exist');
  1190. $output .= "\n The field '";
  1191. #line 500 "template/en/default/global/user-error.html.tmpl"
  1192. # FILTER
  1193. $output .= do {
  1194. my $output = '';
  1195. my $_tt_filter = $context->filter('html')
  1196. || $context->throw($context->error);
  1197. $output .= $stash->get(['field', 0, 'name', 0]);
  1198. &$_tt_filter($output);
  1199. };
  1200. $output .= "' does not exist or \n cannot be edited with this interface.\n";
  1201. }
  1202. elsif ($stash->get('error') eq 'fieldvalue_already_exists') {
  1203. #line 504 "template/en/default/global/user-error.html.tmpl"
  1204. $stash->set('title', 'Field Value Already Exists');
  1205. $output .= "\n The value '";
  1206. #line 505 "template/en/default/global/user-error.html.tmpl"
  1207. # FILTER
  1208. $output .= do {
  1209. my $output = '';
  1210. my $_tt_filter = $context->filter('html')
  1211. || $context->throw($context->error);
  1212. $output .= $stash->get(['value', 0, 'name', 0]);
  1213. &$_tt_filter($output);
  1214. };
  1215. $output .= "' already exists for the\n ";
  1216. #line 506 "template/en/default/global/user-error.html.tmpl"
  1217. # FILTER
  1218. $output .= do {
  1219. my $output = '';
  1220. my $_tt_filter = $context->filter('html')
  1221. || $context->throw($context->error);
  1222. $output .= $stash->get(['field', 0, 'description', 0]);
  1223. &$_tt_filter($output);
  1224. };
  1225. $output .= " field.\n";
  1226. }
  1227. elsif ($stash->get('error') eq 'fieldvalue_is_controller') {
  1228. #line 509 "template/en/default/global/user-error.html.tmpl"
  1229. $stash->set('title', 'Value Controls Other Fields');
  1230. $output .= "\n You cannot delete the ";
  1231. #line 510 "template/en/default/global/user-error.html.tmpl"
  1232. # FILTER
  1233. $output .= do {
  1234. my $output = '';
  1235. my $_tt_filter = $context->filter('html')
  1236. || $context->throw($context->error);
  1237. $output .= $stash->get(['value', 0, 'field', 0, 'description', 0]);
  1238. &$_tt_filter($output);
  1239. };
  1240. $output .= "\n '";
  1241. #line 511 "template/en/default/global/user-error.html.tmpl"
  1242. # FILTER
  1243. $output .= do {
  1244. my $output = '';
  1245. my $_tt_filter = $context->filter('html')
  1246. || $context->throw($context->error);
  1247. $output .= $stash->get(['value', 0, 'name', 0]);
  1248. &$_tt_filter($output);
  1249. };
  1250. $output .= "' because";
  1251. #line 515 "template/en/default/global/user-error.html.tmpl"
  1252. if ($stash->get(['fields', 0, 'size', 0])) {
  1253. $output .= "\n it controls the visibility of the following fields:\n ";
  1254. #line 514 "template/en/default/global/user-error.html.tmpl"
  1255. # FILTER
  1256. $output .= do {
  1257. my $output = '';
  1258. my $_tt_filter = $context->filter('html')
  1259. || $context->throw($context->error);
  1260. $output .= $stash->get(['fields', 0, 'join', [ ', ' ]]);
  1261. &$_tt_filter($output);
  1262. };
  1263. $output .= ".";
  1264. }
  1265. #line 516 "template/en/default/global/user-error.html.tmpl"
  1266. if ($stash->get(['fields', 0, 'size', 0]) && $stash->get(['vals', 0, 'size', 0])) {
  1267. $output .= ' Also, ';
  1268. }
  1269. #line 527 "template/en/default/global/user-error.html.tmpl"
  1270. if ($stash->get(['vals', 0, 'size', 0])) {
  1271. $output .= "\n it controls the visibility of the following field values:\n <ul>";
  1272. #line 525 "template/en/default/global/user-error.html.tmpl"
  1273. # FOREACH
  1274. do {
  1275. my ($_tt_value, $_tt_error, $_tt_oldloop);
  1276. my $_tt_list = $stash->get(['vals', 0, 'keys', 0]);
  1277. unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {
  1278. $_tt_list = Template::Config->iterator($_tt_list)
  1279. || die $Template::Config::ERROR, "\n";
  1280. }
  1281. ($_tt_value, $_tt_error) = $_tt_list->get_first();
  1282. eval { $_tt_oldloop = $stash->get('loop') };
  1283. $stash->set('loop', $_tt_list);
  1284. eval {
  1285. FOR1: while (! $_tt_error) {
  1286. $stash->{'field_name'} = $_tt_value;
  1287. #line 524 "template/en/default/global/user-error.html.tmpl"
  1288. # FOREACH
  1289. do {
  1290. my ($_tt_value, $_tt_error, $_tt_oldloop);
  1291. my $_tt_list = $stash->get(['vals', 0, $stash->get('field_name'), 0]);
  1292. unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {
  1293. $_tt_list = Template::Config->iterator($_tt_list)
  1294. || die $Template::Config::ERROR, "\n";
  1295. }
  1296. ($_tt_value, $_tt_error) = $_tt_list->get_first();
  1297. eval { $_tt_oldloop = $stash->get('loop') };
  1298. $stash->set('loop', $_tt_list);
  1299. eval {
  1300. FOR2: while (! $_tt_error) {
  1301. $stash->{'val'} = $_tt_value;
  1302. $output .= "\n <li>";
  1303. #line 522 "template/en/default/global/user-error.html.tmpl"
  1304. # FILTER
  1305. $output .= do {
  1306. my $output = '';
  1307. my $_tt_filter = $context->filter('html')
  1308. || $context->throw($context->error);
  1309. $output .= $stash->get(['val', 0, 'field', 0, 'name', 0]);
  1310. &$_tt_filter($output);
  1311. };
  1312. $output .= ":\n '";
  1313. #line 523 "template/en/default/global/user-error.html.tmpl"
  1314. # FILTER
  1315. $output .= do {
  1316. my $output = '';
  1317. my $_tt_filter = $context->filter('html')
  1318. || $context->throw($context->error);
  1319. $output .= $stash->get(['val', 0, 'name', 0]);
  1320. &$_tt_filter($output);
  1321. };
  1322. $output .= "'</li>";;
  1323. ($_tt_value, $_tt_error) = $_tt_list->get_next();
  1324. }
  1325. };
  1326. $stash->set('loop', $_tt_oldloop);
  1327. die $@ if $@;
  1328. $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;
  1329. die $_tt_error if $_tt_error;
  1330. };
  1331. ;
  1332. ($_tt_value, $_tt_error) = $_tt_list->get_next();
  1333. }
  1334. };
  1335. $stash->set('loop', $_tt_oldloop);
  1336. die $@ if $@;
  1337. $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;
  1338. die $_tt_error if $_tt_error;
  1339. };
  1340. $output .= "\n </ul>";
  1341. }
  1342. $output .= "\n";
  1343. }
  1344. elsif ($stash->get('error') eq 'fieldvalue_is_default') {
  1345. #line 530 "template/en/default/global/user-error.html.tmpl"
  1346. $stash->set('title', 'Specified Field Value Is Default');
  1347. $output .= "\n '";
  1348. #line 531 "template/en/default/global/user-error.html.tmpl"
  1349. # FILTER
  1350. $output .= do {
  1351. my $output = '';
  1352. my $_tt_filter = $context->filter('html')
  1353. || $context->throw($context->error);
  1354. $output .= $stash->get(['value', 0, 'name', 0]);
  1355. &$_tt_filter($output);
  1356. };
  1357. $output .= "' is the default value for\n the '";
  1358. #line 532 "template/en/default/global/user-error.html.tmpl"
  1359. # FILTER
  1360. $output .= do {
  1361. my $output = '';
  1362. my $_tt_filter = $context->filter('html')
  1363. || $context->throw($context->error);
  1364. $output .= $stash->get(['field', 0, 'description', 0]);
  1365. &$_tt_filter($output);
  1366. };
  1367. $output .= "' field and cannot be deleted\n or disabled.";
  1368. #line 537 "template/en/default/global/user-error.html.tmpl"
  1369. if ($stash->get(['user', 0, 'in_group', [ 'tweakparams' ]])) {
  1370. $output .= "\n You have to <a href=\"editparams.cgi?section=bugfields#";
  1371. #line 536 "template/en/default/global/user-error.html.tmpl"
  1372. # FILTER
  1373. $output .= do {
  1374. my $output = '';
  1375. my $_tt_filter = $context->filter('url_quote')
  1376. || $context->throw($context->error);
  1377. $output .= $stash->get('param_name');
  1378. &$_tt_filter($output);
  1379. };
  1380. $output .= "\">change</a> the default value first.";
  1381. }
  1382. $output .= "\n";
  1383. }
  1384. elsif ($stash->get('error') eq 'fieldvalue_name_too_long') {
  1385. #line 540 "template/en/default/global/user-error.html.tmpl"
  1386. $stash->set('title', 'Field Value Is Too Long');
  1387. $output .= "\n The value of a field is limited to \n ";
  1388. #line 542 "template/en/default/global/user-error.html.tmpl"
  1389. # FILTER
  1390. $output .= do {
  1391. my $output = '';
  1392. my $_tt_filter = $context->filter('none')
  1393. || $context->throw($context->error);
  1394. $output .= $stash->get(['constants', 0, 'FIELD_VALUE_MAX_SIZE', 0]);
  1395. &$_tt_filter($output);
  1396. };
  1397. $output .= " characters. \n '";
  1398. #line 543 "template/en/default/global/user-error.html.tmpl"
  1399. # FILTER
  1400. $output .= do {
  1401. my $output = '';
  1402. my $_tt_filter = $context->filter('html')
  1403. || $context->throw($context->error);
  1404. $output .= $stash->get('value');
  1405. &$_tt_filter($output);
  1406. };
  1407. $output .= "' is too long (";
  1408. #line 543 "template/en/default/global/user-error.html.tmpl"
  1409. $output .= $stash->get(['value', 0, 'length', 0]);
  1410. $output .= " characters).\n";
  1411. }
  1412. elsif ($stash->get('error') eq 'fieldvalue_not_editable') {
  1413. #line 546 "template/en/default/global/user-error.html.tmpl"
  1414. $stash->set('title', 'Field Value Not Editable');
  1415. $output .= "\n The value '";
  1416. #line 547 "template/en/default/global/user-error.html.tmpl"
  1417. # FILTER
  1418. $output .= do {
  1419. my $output = '';
  1420. my $_tt_filter = $context->filter('html')
  1421. || $context->throw($context->error);
  1422. $output .= $stash->get(['old_value', 0, 'name', 0]);
  1423. &$_tt_filter($output);
  1424. };
  1425. $output .= "' cannot be renamed because\n it plays some special role for the '";
  1426. #line 548 "template/en/default/global/user-error.html.tmpl"
  1427. # FILTER
  1428. $output .= do {
  1429. my $output = '';
  1430. my $_tt_filter = $context->filter('html')
  1431. || $context->throw($context->error);
  1432. $output .= $stash->get(['field', 0, 'description', 0]);
  1433. &$_tt_filter($output);
  1434. };
  1435. $output .= "'\n field.\n";
  1436. }
  1437. elsif ($stash->get('error') eq 'fieldvalue_not_deletable') {
  1438. #line 552 "template/en/default/global/user-error.html.tmpl"
  1439. $stash->set('title', 'Field Value Not Deletable');
  1440. $output .= "\n The value '";
  1441. #line 553 "template/en/default/global/user-error.html.tmpl"
  1442. # FILTER
  1443. $output .= do {
  1444. my $output = '';
  1445. my $_tt_filter = $context->filter('html')
  1446. || $context->throw($context->error);
  1447. $output .= $stash->get(['value', 0, 'name', 0]);
  1448. &$_tt_filter($output);
  1449. };
  1450. $output .= "' cannot be removed or\n disabled, because it plays some special role for the \n '";
  1451. #line 555 "template/en/default/global/user-error.html.tmpl"
  1452. # FILTER
  1453. $output .= do {
  1454. my $output = '';
  1455. my $_tt_filter = $context->filter('html')
  1456. || $context->throw($context->error);
  1457. $output .= $stash->get(['field', 0, 'description', 0]);
  1458. &$_tt_filter($output);
  1459. };
  1460. $output .= "' field.\n";
  1461. }
  1462. elsif ($stash->get('error') eq 'fieldvalue_reserved_word') {
  1463. #line 558 "template/en/default/global/user-error.html.tmpl"
  1464. $stash->set('title', 'Reserved Word Not Allowed');
  1465. $output .= "\n You cannot use the value '";
  1466. #line 559 "template/en/default/global/user-error.html.tmpl"
  1467. # FILTER
  1468. $output .= do {
  1469. my $output = '';
  1470. my $_tt_filter = $context->filter('html')
  1471. || $context->throw($context->error);
  1472. $output .= $stash->get('value');
  1473. &$_tt_filter($output);
  1474. };
  1475. $output .= "' for the\n '";
  1476. #line 560 "template/en/default/global/user-error.html.tmpl"
  1477. # FILTER
  1478. $output .= do {
  1479. my $output = '';
  1480. my $_tt_filter = $context->filter('html')
  1481. || $context->throw($context->error);
  1482. $output .= $stash->get(['field', 0, 'description', 0]);
  1483. &$_tt_filter($output);
  1484. };
  1485. $output .= "' field. This value is used internally.\n Please choose another one.\n";
  1486. }
  1487. elsif ($stash->get('error') eq 'fieldvalue_sortkey_invalid') {
  1488. #line 564 "template/en/default/global/user-error.html.tmpl"
  1489. $stash->set('title', 'Invalid Field Value Sortkey');
  1490. $output .= "\n The sortkey '";
  1491. #line 565 "template/en/default/global/user-error.html.tmpl"
  1492. # FILTER
  1493. $output .= do {
  1494. my $output = '';
  1495. my $_tt_filter = $context->filter('html')
  1496. || $context->throw($context->error);
  1497. $output .= $stash->get('sortkey');
  1498. &$_tt_filter($output);
  1499. };
  1500. $output .= "' for the \n ";
  1501. #line 566 "template/en/default/global/user-error.html.tmpl"
  1502. # FILTER
  1503. $output .= do {
  1504. my $output = '';
  1505. my $_tt_filter = $context->filter('html')
  1506. || $context->throw($context->error);
  1507. $output .= $stash->get(['field', 0, 'description', 0]);
  1508. &$_tt_filter($output);
  1509. };
  1510. $output .= " field is not a valid \n (positive) number.\n";
  1511. }
  1512. elsif ($stash->get('error') eq 'fieldvalue_still_has_bugs') {
  1513. #line 570 "template/en/default/global/user-error.html.tmpl"
  1514. $stash->set('title', 'You Cannot Delete This Field Value');
  1515. $output .= "\n You cannot delete the value '";
  1516. #line 571 "template/en/default/global/user-error.html.tmpl"
  1517. # FILTER
  1518. $output .= do {
  1519. my $output = '';
  1520. my $_tt_filter = $context->filter('html')
  1521. || $context->throw($context->error);
  1522. $output .= $stash->get(['value', 0, 'name', 0]);
  1523. &$_tt_filter($output);
  1524. };
  1525. $output .= "' from the ";
  1526. #line 572 "template/en/default/global/user-error.html.tmpl"
  1527. # FILTER
  1528. $output .= do {
  1529. my $output = '';
  1530. my $_tt_filter = $context->filter('html')
  1531. || $context->throw($context->error);
  1532. $output .= $stash->get(['field', 0, 'description', 0]);
  1533. &$_tt_filter($output);
  1534. };
  1535. $output .= " field, because there are still\n ";
  1536. #line 573 "template/en/default/global/user-error.html.tmpl"
  1537. # FILTER
  1538. $output .= do {
  1539. my $output = '';
  1540. my $_tt_filter = $context->filter('html')
  1541. || $context->throw($context->error);
  1542. $output .= $stash->get(['value', 0, 'bug_count', 0]);
  1543. &$_tt_filter($output);
  1544. };
  1545. $output .= " ";
  1546. #line 573 "template/en/default/global/user-error.html.tmpl"
  1547. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  1548. $output .= " using it.\n";
  1549. }
  1550. elsif ($stash->get('error') eq 'fieldvalue_undefined') {
  1551. #line 576 "template/en/default/global/user-error.html.tmpl"
  1552. $stash->set('title', 'Undefined Value Not Allowed');
  1553. $output .= "\n You must specify a value.\n";
  1554. }
  1555. elsif ($stash->get('error') eq 'file_not_specified') {
  1556. #line 580 "template/en/default/global/user-error.html.tmpl"
  1557. $stash->set('title', 'No File Specified');
  1558. $output .= "\n You did not specify a file to attach.\n";
  1559. }
  1560. elsif ($stash->get('error') eq 'file_too_large') {
  1561. #line 584 "template/en/default/global/user-error.html.tmpl"
  1562. $stash->set('title', 'File Too Large');
  1563. $output .= "\n The file you are trying to attach is ";
  1564. #line 585 "template/en/default/global/user-error.html.tmpl"
  1565. # FILTER
  1566. $output .= do {
  1567. my $output = '';
  1568. my $_tt_filter = $context->filter('html')
  1569. || $context->throw($context->error);
  1570. $output .= $stash->get('filesize');
  1571. &$_tt_filter($output);
  1572. };
  1573. $output .= " \n kilobytes (KB) in size. Attachments cannot be more than\n ";
  1574. #line 587 "template/en/default/global/user-error.html.tmpl"
  1575. $output .= $stash->get(['Param', [ 'maxattachmentsize' ]]);
  1576. $output .= " KB. <br>\n We recommend that you store your attachment elsewhere";
  1577. #line 595 "template/en/default/global/user-error.html.tmpl"
  1578. if ($stash->get(['Param', [ 'allow_attach_url' ]])) {
  1579. $output .= "\n and then specify the URL to this file on the attachment\n creation page in the <b>AttachURL</b> field.";
  1580. }
  1581. else {
  1582. $output .= "\n and then insert the URL to it in a comment, or in the URL field\n for this ";
  1583. #line 594 "template/en/default/global/user-error.html.tmpl"
  1584. $output .= $stash->get(['terms', 0, 'bug', 0]);
  1585. $output .= ".";
  1586. }
  1587. $output .= "\n <br>Alternately, if your attachment is an image, you could convert\n it to a compressible format like JPG or PNG and try again.\n";
  1588. }
  1589. elsif ($stash->get('error') eq 'flag_requestee_needs_privs') {
  1590. #line 600 "template/en/default/global/user-error.html.tmpl"
  1591. $stash->set('title', 'Flag Requestee Needs Privileges');
  1592. #line 601 "template/en/default/global/user-error.html.tmpl"
  1593. # FILTER
  1594. $output .= do {
  1595. my $output = '';
  1596. my $_tt_filter = $context->filter('html')
  1597. || $context->throw($context->error);
  1598. $output .= $stash->get(['requestee', 0, 'identity', 0]);
  1599. &$_tt_filter($output);
  1600. };
  1601. $output .= " does not have permission to set the\n <em>";
  1602. #line 602 "template/en/default/global/user-error.html.tmpl"
  1603. # FILTER
  1604. $output .= do {
  1605. my $output = '';
  1606. my $_tt_filter = $context->filter('html')
  1607. || $context->throw($context->error);
  1608. $output .= $stash->get(['flagtype', 0, 'name', 0]);
  1609. &$_tt_filter($output);
  1610. };
  1611. $output .= "</em> flag. Please select a user who is\n a member of the <em>";
  1612. #line 603 "template/en/default/global/user-error.html.tmpl"
  1613. # FILTER
  1614. $output .= do {
  1615. my $output = '';
  1616. my $_tt_filter = $context->filter('html')
  1617. || $context->throw($context->error);
  1618. $output .= $stash->get(['flagtype', 0, 'grant_group', 0, 'name', 0]);
  1619. &$_tt_filter($output);
  1620. };
  1621. $output .= "</em> group.\n";
  1622. }
  1623. elsif ($stash->get('error') eq 'flag_requestee_unauthorized') {
  1624. #line 606 "template/en/default/global/user-error.html.tmpl"
  1625. $stash->set('title', 'Flag Requestee Not Authorized');
  1626. #line 607 "template/en/default/global/user-error.html.tmpl"
  1627. $stash->set('admindocslinks', { 'flags-overview.html#flags-admin' => 'Administering Flags', 'groups.html' => 'Group Security' });
  1628. #line 609 "template/en/default/global/user-error.html.tmpl"
  1629. $stash->set('docslinks', { 'flags-overview.html' => 'An overview on Flags', 'flags.html' => 'Using Flags' });
  1630. $output .= "\n\n You asked ";
  1631. #line 612 "template/en/default/global/user-error.html.tmpl"
  1632. # FILTER
  1633. $output .= do {
  1634. my $output = '';
  1635. my $_tt_filter = $context->filter('html')
  1636. || $context->throw($context->error);
  1637. $output .= $stash->get(['requestee', 0, 'identity', 0]);
  1638. &$_tt_filter($output);
  1639. };
  1640. $output .= "\n for <code>";
  1641. #line 613 "template/en/default/global/user-error.html.tmpl"
  1642. # FILTER
  1643. $output .= do {
  1644. my $output = '';
  1645. my $_tt_filter = $context->filter('html')
  1646. || $context->throw($context->error);
  1647. $output .= $stash->get(['flag_type', 0, 'name', 0]);
  1648. &$_tt_filter($output);
  1649. };
  1650. $output .= "</code> on ";
  1651. #line 613 "template/en/default/global/user-error.html.tmpl"
  1652. $output .= $stash->get(['terms', 0, 'bug', 0]);
  1653. $output .= " \n ";
  1654. #line 614 "template/en/default/global/user-error.html.tmpl"
  1655. # FILTER
  1656. $output .= do {
  1657. my $output = '';
  1658. my $_tt_filter = $context->filter('html')
  1659. || $context->throw($context->error);
  1660. $output .= $stash->get('bug_id');
  1661. &$_tt_filter($output);
  1662. };
  1663. #line 615 "template/en/default/global/user-error.html.tmpl"
  1664. if ($stash->get('attach_id') && $stash->get('attach_id') > 0) {
  1665. $output .= ", attachment ";
  1666. #line 615 "template/en/default/global/user-error.html.tmpl"
  1667. # FILTER
  1668. $output .= do {
  1669. my $output = '';
  1670. my $_tt_filter = $context->filter('html')
  1671. || $context->throw($context->error);
  1672. $output .= $stash->get('attach_id');
  1673. &$_tt_filter($output);
  1674. };
  1675. }
  1676. $output .= ",\n but that ";
  1677. #line 616 "template/en/default/global/user-error.html.tmpl"
  1678. $output .= $stash->get(['terms', 0, 'bug', 0]);
  1679. $output .= " has been restricted to users in certain groups, \n and the user you asked isn't in all the groups to which \n the ";
  1680. #line 618 "template/en/default/global/user-error.html.tmpl"
  1681. $output .= $stash->get(['terms', 0, 'bug', 0]);
  1682. $output .= " has been restricted.\n Please choose someone else to ask, or make the ";
  1683. #line 619 "template/en/default/global/user-error.html.tmpl"
  1684. $output .= $stash->get(['terms', 0, 'bug', 0]);
  1685. $output .= " accessible\n to users on its CC: list and add that user to the list.\n";
  1686. }
  1687. elsif ($stash->get('error') eq 'flag_requestee_unauthorized_attachment') {
  1688. #line 623 "template/en/default/global/user-error.html.tmpl"
  1689. $stash->set('title', 'Flag Requestee Not Authorized');
  1690. #line 624 "template/en/default/global/user-error.html.tmpl"
  1691. $stash->set('admindocslinks', { 'flags-overview.html#flags-admin' => 'Administering Flags', 'groups.html' => 'Group Security' });
  1692. #line 626 "template/en/default/global/user-error.html.tmpl"
  1693. $stash->set('docslinks', { 'flags-overview.html' => 'An overview on Flags', 'flags.html' => 'Using Flags' });
  1694. $output .= "\n\n You asked ";
  1695. #line 629 "template/en/default/global/user-error.html.tmpl"
  1696. # FILTER
  1697. $output .= do {
  1698. my $output = '';
  1699. my $_tt_filter = $context->filter('html')
  1700. || $context->throw($context->error);
  1701. $output .= $stash->get(['requestee', 0, 'identity', 0]);
  1702. &$_tt_filter($output);
  1703. };
  1704. $output .= "\n for <code>";
  1705. #line 630 "template/en/default/global/user-error.html.tmpl"
  1706. # FILTER
  1707. $output .= do {
  1708. my $output = '';
  1709. my $_tt_filter = $context->filter('html')
  1710. || $context->throw($context->error);
  1711. $output .= $stash->get(['flag_type', 0, 'name', 0]);
  1712. &$_tt_filter($output);
  1713. };
  1714. $output .= "</code> on \n ";
  1715. #line 631 "template/en/default/global/user-error.html.tmpl"
  1716. $output .= $stash->get(['terms', 0, 'bug', 0]);
  1717. $output .= " ";
  1718. #line 631 "template/en/default/global/user-error.html.tmpl"
  1719. # FILTER
  1720. $output .= do {
  1721. my $output = '';
  1722. my $_tt_filter = $context->filter('html')
  1723. || $context->throw($context->error);
  1724. $output .= $stash->get('bug_id');
  1725. &$_tt_filter($output);
  1726. };
  1727. $output .= ",\n attachment ";
  1728. #line 632 "template/en/default/global/user-error.html.tmpl"
  1729. # FILTER
  1730. $output .= do {
  1731. my $output = '';
  1732. my $_tt_filter = $context->filter('html')
  1733. || $context->throw($context->error);
  1734. $output .= $stash->get('attach_id');
  1735. &$_tt_filter($output);
  1736. };
  1737. $output .= ", but that attachment\n is restricted to users in the ";
  1738. #line 633 "template/en/default/global/user-error.html.tmpl"
  1739. # FILTER
  1740. $output .= do {
  1741. my $output = '';
  1742. my $_tt_filter = $context->filter('html')
  1743. || $context->throw($context->error);
  1744. $output .= $stash->get(['Param', [ 'insidergroup' ]]);
  1745. &$_tt_filter($output);
  1746. };
  1747. $output .= " group,\n and the user you asked isn't in that group. Please choose someone else\n to ask, or ask an administrator to add the user to the group.\n";
  1748. }
  1749. elsif ($stash->get('error') eq 'flag_status_invalid') {
  1750. #line 638 "template/en/default/global/user-error.html.tmpl"
  1751. $stash->set('title', 'Flag Status Invalid');
  1752. $output .= "\n The flag status <em>";
  1753. #line 639 "template/en/default/global/user-error.html.tmpl"
  1754. # FILTER
  1755. $output .= do {
  1756. my $output = '';
  1757. my $_tt_filter = $context->filter('html')
  1758. || $context->throw($context->error);
  1759. $output .= $stash->get('status');
  1760. &$_tt_filter($output);
  1761. };
  1762. $output .= "</em>";
  1763. #line 642 "template/en/default/global/user-error.html.tmpl"
  1764. if ($stash->get('id')) {
  1765. $output .= "\n for flag ID #";
  1766. #line 641 "template/en/default/global/user-error.html.tmpl"
  1767. # FILTER
  1768. $output .= do {
  1769. my $output = '';
  1770. my $_tt_filter = $context->filter('html')
  1771. || $context->throw($context->error);
  1772. $output .= $stash->get('id');
  1773. &$_tt_filter($output);
  1774. };
  1775. }
  1776. $output .= "\n is invalid.\n";
  1777. }
  1778. elsif ($stash->get('error') eq 'flag_type_cc_list_invalid') {
  1779. #line 646 "template/en/default/global/user-error.html.tmpl"
  1780. $stash->set('title', 'Flag Type CC List Invalid');
  1781. #line 647 "template/en/default/global/user-error.html.tmpl"
  1782. $stash->set('admindocslinks', { 'flags-overview.html#flags-admin' => 'Administering Flags' });
  1783. $output .= "\n The CC list ";
  1784. #line 648 "template/en/default/global/user-error.html.tmpl"
  1785. # FILTER
  1786. $output .= do {
  1787. my $output = '';
  1788. my $_tt_filter = $context->filter('html')
  1789. || $context->throw($context->error);
  1790. $output .= $stash->get('cc_list');
  1791. &$_tt_filter($output);
  1792. };
  1793. $output .= " must be less than 200 characters long.\n";
  1794. }
  1795. elsif ($stash->get('error') eq 'flag_type_component_without_product') {
  1796. #line 651 "template/en/default/global/user-error.html.tmpl"
  1797. $stash->set('title', 'Product Missing');
  1798. $output .= "\n A component was selected without a product being selected.\n";
  1799. }
  1800. elsif ($stash->get('error') eq 'flag_type_description_invalid') {
  1801. #line 655 "template/en/default/global/user-error.html.tmpl"
  1802. $stash->set('title', 'Flag Type Description Invalid');
  1803. #line 656 "template/en/default/global/user-error.html.tmpl"
  1804. $stash->set('admindocslinks', { 'flags-overview.html#flags-admin' => 'Administering Flags' });
  1805. $output .= "\n The description must be less than 32K.\n";
  1806. }
  1807. elsif ($stash->get('error') eq 'flag_type_name_invalid') {
  1808. #line 660 "template/en/default/global/user-error.html.tmpl"
  1809. $stash->set('title', 'Flag Type Name Invalid');
  1810. #line 661 "template/en/default/global/user-error.html.tmpl"
  1811. $stash->set('admindocslinks', { 'flags-overview.html#flags-admin' => 'Administering Flags' });
  1812. $output .= "\n The name <em>";
  1813. #line 662 "template/en/default/global/user-error.html.tmpl"
  1814. # FILTER
  1815. $output .= do {
  1816. my $output = '';
  1817. my $_tt_filter = $context->filter('html')
  1818. || $context->throw($context->error);
  1819. $output .= $stash->get('name');
  1820. &$_tt_filter($output);
  1821. };
  1822. $output .= "</em> must be 1-50 characters long\n and must not contain any spaces or commas.\n";
  1823. }
  1824. elsif ($stash->get('error') eq 'flag_type_not_multiplicable') {
  1825. #line 666 "template/en/default/global/user-error.html.tmpl"
  1826. $stash->set('docslinks', { 'flags-overview.html' => 'An overview on Flags', 'flags.html' => 'Using Flags' });
  1827. $output .= "\n You cannot have several <em>";
  1828. #line 668 "template/en/default/global/user-error.html.tmpl"
  1829. # FILTER
  1830. $output .= do {
  1831. my $output = '';
  1832. my $_tt_filter = $context->filter('html')
  1833. || $context->throw($context->error);
  1834. $output .= $stash->get(['type', 0, 'name', 0]);
  1835. &$_tt_filter($output);
  1836. };
  1837. $output .= "</em> flags\n for this ";
  1838. #line 669 "template/en/default/global/user-error.html.tmpl"
  1839. if ($stash->get('attachment')) {
  1840. $output .= " attachment ";
  1841. }
  1842. else {
  1843. $output .= " ";
  1844. #line 669 "template/en/default/global/user-error.html.tmpl"
  1845. $output .= $stash->get(['terms', 0, 'bug', 0]);
  1846. }
  1847. $output .= ".\n";
  1848. }
  1849. elsif ($stash->get('error') eq 'flag_update_denied') {
  1850. #line 672 "template/en/default/global/user-error.html.tmpl"
  1851. $stash->set('title', 'Flag Modification Denied');
  1852. #line 673 "template/en/default/global/user-error.html.tmpl"
  1853. $stash->set('admindocslinks', { 'flags-overview.html#flags-admin' => 'Administering Flags', 'groups.html' => 'Group Security' });
  1854. #line 675 "template/en/default/global/user-error.html.tmpl"
  1855. $stash->set('docslinks', { 'flags-overview.html' => 'An overview on Flags', 'flags.html' => 'Using Flags' });
  1856. $output .= "\n You tried to ";
  1857. #line 678 "template/en/default/global/user-error.html.tmpl"
  1858. if ($stash->get('status') eq '+') {
  1859. $output .= " grant ";
  1860. }
  1861. elsif ($stash->get('status') eq '-') {
  1862. $output .= " deny";
  1863. }
  1864. elsif ($stash->get('status') eq 'X') {
  1865. $output .= " clear ";
  1866. }
  1867. else {
  1868. $output .= " request ";
  1869. }
  1870. $output .= "\n <code>";
  1871. #line 679 "template/en/default/global/user-error.html.tmpl"
  1872. # FILTER
  1873. $output .= do {
  1874. my $output = '';
  1875. my $_tt_filter = $context->filter('html')
  1876. || $context->throw($context->error);
  1877. $output .= $stash->get('name');
  1878. &$_tt_filter($output);
  1879. };
  1880. #line 680 "template/en/default/global/user-error.html.tmpl"
  1881. if ($stash->get('status') eq 'X') {
  1882. #line 680 "template/en/default/global/user-error.html.tmpl"
  1883. # FILTER
  1884. $output .= do {
  1885. my $output = '';
  1886. my $_tt_filter = $context->filter('html')
  1887. || $context->throw($context->error);
  1888. $output .= $stash->get('old_status');
  1889. &$_tt_filter($output);
  1890. };
  1891. }
  1892. $output .= "</code>.\n\n Only a user with the required permissions may make this change.\n";
  1893. }
  1894. elsif ($stash->get('error') eq 'format_not_found') {
  1895. #line 685 "template/en/default/global/user-error.html.tmpl"
  1896. $stash->set('title', 'Format Not Found');
  1897. $output .= "\n The requested format <em>";
  1898. #line 686 "template/en/default/global/user-error.html.tmpl"
  1899. # FILTER
  1900. $output .= do {
  1901. my $output = '';
  1902. my $_tt_filter = $context->filter('html')
  1903. || $context->throw($context->error);
  1904. $output .= $stash->get('format');
  1905. &$_tt_filter($output);
  1906. };
  1907. $output .= "</em> does not exist with\n a content type of <em>";
  1908. #line 687 "template/en/default/global/user-error.html.tmpl"
  1909. # FILTER
  1910. $output .= do {
  1911. my $output = '';
  1912. my $_tt_filter = $context->filter('html')
  1913. || $context->throw($context->error);
  1914. $output .= $stash->get('ctype');
  1915. &$_tt_filter($output);
  1916. };
  1917. $output .= "</em>.\n ";
  1918. }
  1919. elsif ($stash->get('error') eq 'flag_type_sortkey_invalid') {
  1920. #line 690 "template/en/default/global/user-error.html.tmpl"
  1921. $stash->set('title', 'Flag Type Sort Key Invalid');
  1922. $output .= "\n The sort key must be an integer between 0 and 32767 inclusive.\n It cannot be <em>";
  1923. #line 692 "template/en/default/global/user-error.html.tmpl"
  1924. # FILTER
  1925. $output .= do {
  1926. my $output = '';
  1927. my $_tt_filter = $context->filter('html')
  1928. || $context->throw($context->error);
  1929. $output .= $stash->get('sortkey');
  1930. &$_tt_filter($output);
  1931. };
  1932. $output .= "</em>.\n";
  1933. }
  1934. elsif ($stash->get('error') eq 'freetext_too_long') {
  1935. #line 695 "template/en/default/global/user-error.html.tmpl"
  1936. $stash->set('title', 'Text Too Long');
  1937. $output .= "\n The text you entered in the ";
  1938. #line 696 "template/en/default/global/user-error.html.tmpl"
  1939. # FILTER
  1940. $output .= do {
  1941. my $output = '';
  1942. my $_tt_filter = $context->filter('html')
  1943. || $context->throw($context->error);
  1944. $output .= $stash->get(['field_descs', 0, $stash->get('field'), 0]);
  1945. &$_tt_filter($output);
  1946. };
  1947. $output .= "\n field is too long (";
  1948. #line 697 "template/en/default/global/user-error.html.tmpl"
  1949. # FILTER
  1950. $output .= do {
  1951. my $output = '';
  1952. my $_tt_filter = $context->filter('html')
  1953. || $context->throw($context->error);
  1954. $output .= $stash->get(['text', 0, 'length', 0]);
  1955. &$_tt_filter($output);
  1956. };
  1957. $output .= " characters,\n above the maximum length allowed of\n ";
  1958. #line 699 "template/en/default/global/user-error.html.tmpl"
  1959. # FILTER
  1960. $output .= do {
  1961. my $output = '';
  1962. my $_tt_filter = $context->filter('none')
  1963. || $context->throw($context->error);
  1964. $output .= '255';
  1965. &$_tt_filter($output);
  1966. };
  1967. $output .= " characters).\n";
  1968. }
  1969. elsif ($stash->get('error') eq 'group_cannot_delete') {
  1970. #line 702 "template/en/default/global/user-error.html.tmpl"
  1971. $stash->set('title', 'Cannot Delete Group');
  1972. $output .= "\n The <em>";
  1973. #line 703 "template/en/default/global/user-error.html.tmpl"
  1974. # FILTER
  1975. $output .= do {
  1976. my $output = '';
  1977. my $_tt_filter = $context->filter('html')
  1978. || $context->throw($context->error);
  1979. $output .= $stash->get(['group', 0, 'name', 0]);
  1980. &$_tt_filter($output);
  1981. };
  1982. $output .= "</em> group cannot be deleted because\n there are\n <a href=\"editgroups.cgi?action=del&amp;group=";
  1983. #line 706 "template/en/default/global/user-error.html.tmpl"
  1984. # FILTER
  1985. $output .= do {
  1986. my $output = '';
  1987. my $_tt_filter = $context->filter('url_quote')
  1988. || $context->throw($context->error);
  1989. $output .= $stash->get(['group', 0, 'id', 0]);
  1990. &$_tt_filter($output);
  1991. };
  1992. $output .= "\">records</a>\n in the database which refer to it. All references to this group must\n be removed before you can remove it.\n";
  1993. }
  1994. elsif ($stash->get('error') eq 'group_change_denied') {
  1995. #line 711 "template/en/default/global/user-error.html.tmpl"
  1996. $stash->set('title', 'Cannot Add/Remove That Group');
  1997. $output .= "\n You tried to add or remove the '";
  1998. #line 712 "template/en/default/global/user-error.html.tmpl"
  1999. # FILTER
  2000. $output .= do {
  2001. my $output = '';
  2002. my $_tt_filter = $context->filter('html')
  2003. || $context->throw($context->error);
  2004. $output .= $stash->get(['group', 0, 'name', 0]);
  2005. &$_tt_filter($output);
  2006. };
  2007. $output .= "' group\n from ";
  2008. #line 713 "template/en/default/global/user-error.html.tmpl"
  2009. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2010. $output .= " ";
  2011. #line 713 "template/en/default/global/user-error.html.tmpl"
  2012. # FILTER
  2013. $output .= do {
  2014. my $output = '';
  2015. my $_tt_filter = $context->filter('html')
  2016. || $context->throw($context->error);
  2017. $output .= $stash->get(['bug', 0, 'id', 0]);
  2018. &$_tt_filter($output);
  2019. };
  2020. $output .= ", but you do not\n have permissions to do so.\n";
  2021. }
  2022. elsif ($stash->get('error') eq 'group_exists') {
  2023. #line 717 "template/en/default/global/user-error.html.tmpl"
  2024. $stash->set('title', 'The group already exists');
  2025. $output .= "\n The group ";
  2026. #line 718 "template/en/default/global/user-error.html.tmpl"
  2027. # FILTER
  2028. $output .= do {
  2029. my $output = '';
  2030. my $_tt_filter = $context->filter('html')
  2031. || $context->throw($context->error);
  2032. $output .= $stash->get('name');
  2033. &$_tt_filter($output);
  2034. };
  2035. $output .= " already exists.\n";
  2036. }
  2037. elsif ($stash->get('error') eq 'group_has_special_role') {
  2038. #line 721 "template/en/default/global/user-error.html.tmpl"
  2039. $stash->set('title', 'Group not deletable');
  2040. #line 728 "template/en/default/global/user-error.html.tmpl"
  2041. if ($stash->get(['groups', 0, 'size', 0]) eq 1) {
  2042. #line 723 "template/en/default/global/user-error.html.tmpl"
  2043. $stash->set('attr', 'it');
  2044. #line 724 "template/en/default/global/user-error.html.tmpl"
  2045. $stash->set('param', 'parameter');
  2046. }
  2047. else {
  2048. #line 726 "template/en/default/global/user-error.html.tmpl"
  2049. $stash->set('attr', 'them');
  2050. #line 727 "template/en/default/global/user-error.html.tmpl"
  2051. $stash->set('param', 'parameters');
  2052. }
  2053. $output .= "\n The group '";
  2054. #line 729 "template/en/default/global/user-error.html.tmpl"
  2055. # FILTER
  2056. $output .= do {
  2057. my $output = '';
  2058. my $_tt_filter = $context->filter('html')
  2059. || $context->throw($context->error);
  2060. $output .= $stash->get('name');
  2061. &$_tt_filter($output);
  2062. };
  2063. $output .= "' is used by the\n '";
  2064. #line 730 "template/en/default/global/user-error.html.tmpl"
  2065. # FILTER
  2066. $output .= do {
  2067. my $output = '';
  2068. my $_tt_filter = $context->filter('html')
  2069. || $context->throw($context->error);
  2070. $output .= $stash->get(['groups', 0, 'join', [ '\' and \'' ]]);
  2071. &$_tt_filter($output);
  2072. };
  2073. $output .= "' ";
  2074. #line 730 "template/en/default/global/user-error.html.tmpl"
  2075. # FILTER
  2076. $output .= do {
  2077. my $output = '';
  2078. my $_tt_filter = $context->filter('html')
  2079. || $context->throw($context->error);
  2080. $output .= $stash->get('param');
  2081. &$_tt_filter($output);
  2082. };
  2083. $output .= ".\n In order to delete this group, you first have to change the\n ";
  2084. #line 732 "template/en/default/global/user-error.html.tmpl"
  2085. # FILTER
  2086. $output .= do {
  2087. my $output = '';
  2088. my $_tt_filter = $context->filter('html')
  2089. || $context->throw($context->error);
  2090. $output .= $stash->get('param');
  2091. &$_tt_filter($output);
  2092. };
  2093. $output .= " to make ";
  2094. #line 732 "template/en/default/global/user-error.html.tmpl"
  2095. # FILTER
  2096. $output .= do {
  2097. my $output = '';
  2098. my $_tt_filter = $context->filter('html')
  2099. || $context->throw($context->error);
  2100. $output .= $stash->get('attr');
  2101. &$_tt_filter($output);
  2102. };
  2103. $output .= " point to another group.\n\n";
  2104. }
  2105. elsif ($stash->get('error') eq 'group_invalid_removal') {
  2106. $output .= "\n You tried to remove ";
  2107. #line 736 "template/en/default/global/user-error.html.tmpl"
  2108. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2109. $output .= " ";
  2110. #line 736 "template/en/default/global/user-error.html.tmpl"
  2111. # FILTER
  2112. $output .= do {
  2113. my $output = '';
  2114. my $_tt_filter = $context->filter('html')
  2115. || $context->throw($context->error);
  2116. $output .= $stash->get(['bug', 0, 'id', 0]);
  2117. &$_tt_filter($output);
  2118. };
  2119. $output .= "\n from the '";
  2120. #line 737 "template/en/default/global/user-error.html.tmpl"
  2121. # FILTER
  2122. $output .= do {
  2123. my $output = '';
  2124. my $_tt_filter = $context->filter('html')
  2125. || $context->throw($context->error);
  2126. $output .= $stash->get(['group', 0, 'name', 0]);
  2127. &$_tt_filter($output);
  2128. };
  2129. $output .= "' group, but ";
  2130. #line 737 "template/en/default/global/user-error.html.tmpl"
  2131. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  2132. $output .= "\n in the '";
  2133. #line 738 "template/en/default/global/user-error.html.tmpl"
  2134. # FILTER
  2135. $output .= do {
  2136. my $output = '';
  2137. my $_tt_filter = $context->filter('html')
  2138. || $context->throw($context->error);
  2139. $output .= $stash->get('product');
  2140. &$_tt_filter($output);
  2141. };
  2142. $output .= "' product can not be removed from that\n group.\n ";
  2143. }
  2144. elsif ($stash->get('error') eq 'group_invalid_restriction') {
  2145. $output .= "\n You tried to restrict ";
  2146. #line 742 "template/en/default/global/user-error.html.tmpl"
  2147. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2148. $output .= " ";
  2149. #line 742 "template/en/default/global/user-error.html.tmpl"
  2150. # FILTER
  2151. $output .= do {
  2152. my $output = '';
  2153. my $_tt_filter = $context->filter('html')
  2154. || $context->throw($context->error);
  2155. $output .= $stash->get(['bug', 0, 'id', 0]);
  2156. &$_tt_filter($output);
  2157. };
  2158. $output .= " to\n to the '";
  2159. #line 743 "template/en/default/global/user-error.html.tmpl"
  2160. # FILTER
  2161. $output .= do {
  2162. my $output = '';
  2163. my $_tt_filter = $context->filter('html')
  2164. || $context->throw($context->error);
  2165. $output .= $stash->get(['group', 0, 'name', 0]);
  2166. &$_tt_filter($output);
  2167. };
  2168. $output .= "' group, but ";
  2169. #line 743 "template/en/default/global/user-error.html.tmpl"
  2170. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  2171. $output .= " in the\n '";
  2172. #line 744 "template/en/default/global/user-error.html.tmpl"
  2173. # FILTER
  2174. $output .= do {
  2175. my $output = '';
  2176. my $_tt_filter = $context->filter('html')
  2177. || $context->throw($context->error);
  2178. $output .= $stash->get('product');
  2179. &$_tt_filter($output);
  2180. };
  2181. $output .= "' product can not be restricted to\n that group.\n";
  2182. }
  2183. elsif ($stash->get('error') eq 'group_not_specified') {
  2184. #line 748 "template/en/default/global/user-error.html.tmpl"
  2185. $stash->set('title', 'Group not specified');
  2186. $output .= "\n No group was specified.\n";
  2187. }
  2188. elsif ($stash->get('error') eq 'system_group_not_deletable') {
  2189. #line 752 "template/en/default/global/user-error.html.tmpl"
  2190. $stash->set('title', 'System Groups not deletable');
  2191. $output .= "\n <em>";
  2192. #line 753 "template/en/default/global/user-error.html.tmpl"
  2193. # FILTER
  2194. $output .= do {
  2195. my $output = '';
  2196. my $_tt_filter = $context->filter('html')
  2197. || $context->throw($context->error);
  2198. $output .= $stash->get('name');
  2199. &$_tt_filter($output);
  2200. };
  2201. $output .= "</em> is a system group.\n This group cannot be deleted.\n";
  2202. }
  2203. elsif ($stash->get('error') eq 'group_unknown') {
  2204. #line 757 "template/en/default/global/user-error.html.tmpl"
  2205. $stash->set('title', 'Unknown Group');
  2206. $output .= "\n The group ";
  2207. #line 758 "template/en/default/global/user-error.html.tmpl"
  2208. # FILTER
  2209. $output .= do {
  2210. my $output = '';
  2211. my $_tt_filter = $context->filter('html')
  2212. || $context->throw($context->error);
  2213. $output .= $stash->get('name');
  2214. &$_tt_filter($output);
  2215. };
  2216. $output .= " does not exist. Please specify\n a valid group name. Create it first if necessary!\n";
  2217. }
  2218. elsif ($stash->get('error') eq 'illegal_attachment_edit') {
  2219. #line 762 "template/en/default/global/user-error.html.tmpl"
  2220. $stash->set('title', 'Unauthorized Action');
  2221. $output .= "\n You are not authorized to edit attachment ";
  2222. #line 763 "template/en/default/global/user-error.html.tmpl"
  2223. # FILTER
  2224. $output .= do {
  2225. my $output = '';
  2226. my $_tt_filter = $context->filter('html')
  2227. || $context->throw($context->error);
  2228. $output .= $stash->get('attach_id');
  2229. &$_tt_filter($output);
  2230. };
  2231. $output .= ".\n";
  2232. }
  2233. elsif ($stash->get('error') eq 'illegal_attachment_edit_bug') {
  2234. #line 766 "template/en/default/global/user-error.html.tmpl"
  2235. $stash->set('title', 'Unauthorized Action');
  2236. $output .= "\n You are not authorized to edit attachments on ";
  2237. #line 767 "template/en/default/global/user-error.html.tmpl"
  2238. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2239. $output .= " \n ";
  2240. #line 768 "template/en/default/global/user-error.html.tmpl"
  2241. # FILTER
  2242. $output .= do {
  2243. my $output = '';
  2244. my $_tt_filter = $context->filter('html')
  2245. || $context->throw($context->error);
  2246. $output .= $stash->get('bug_id');
  2247. &$_tt_filter($output);
  2248. };
  2249. $output .= ".\n ";
  2250. }
  2251. elsif ($stash->get('error') eq 'illegal_attachment_is_patch') {
  2252. #line 771 "template/en/default/global/user-error.html.tmpl"
  2253. $stash->set('title', 'Your Search Makes No Sense');
  2254. $output .= "\n The only legal values for the <em>Attachment is patch</em> field are\n 0 and 1.\n";
  2255. }
  2256. elsif ($stash->get('error') eq 'illegal_bug_status_transition') {
  2257. #line 1 "template/en/default/global/user-error.html.tmpl"
  2258. $stash->set('title', ("Illegal " . $stash->get(['terms', 0, 'Bug', 0]) . " Status Change"));
  2259. #line 783 "template/en/default/global/user-error.html.tmpl"
  2260. if ($stash->get(['old', 0, 'defined', 0])) {
  2261. $output .= "\n You are not allowed to change the ";
  2262. #line 778 "template/en/default/global/user-error.html.tmpl"
  2263. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2264. $output .= " status from\n ";
  2265. #line 779 "template/en/default/global/user-error.html.tmpl"
  2266. # FILTER
  2267. $output .= do {
  2268. my $output = '';
  2269. my $_tt_filter = $context->filter('html')
  2270. || $context->throw($context->error);
  2271. $output .= $stash->get(['old', 0, 'name', 0]);
  2272. &$_tt_filter($output);
  2273. };
  2274. $output .= " to ";
  2275. #line 779 "template/en/default/global/user-error.html.tmpl"
  2276. # FILTER
  2277. $output .= do {
  2278. my $output = '';
  2279. my $_tt_filter = $context->filter('html')
  2280. || $context->throw($context->error);
  2281. $output .= $stash->get(['new', 0, 'name', 0]);
  2282. &$_tt_filter($output);
  2283. };
  2284. $output .= ".";
  2285. }
  2286. else {
  2287. $output .= "\n You are not allowed to file new ";
  2288. #line 781 "template/en/default/global/user-error.html.tmpl"
  2289. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  2290. $output .= " with the\n ";
  2291. #line 782 "template/en/default/global/user-error.html.tmpl"
  2292. # FILTER
  2293. $output .= do {
  2294. my $output = '';
  2295. my $_tt_filter = $context->filter('html')
  2296. || $context->throw($context->error);
  2297. $output .= $stash->get(['new', 0, 'name', 0]);
  2298. &$_tt_filter($output);
  2299. };
  2300. $output .= " status. ";
  2301. }
  2302. $output .= "\n";
  2303. }
  2304. elsif ($stash->get('error') eq 'illegal_change') {
  2305. #line 786 "template/en/default/global/user-error.html.tmpl"
  2306. $stash->set('title', 'Not allowed');
  2307. $output .= "\n You tried to change the\n <strong>";
  2308. #line 788 "template/en/default/global/user-error.html.tmpl"
  2309. # FILTER
  2310. $output .= do {
  2311. my $output = '';
  2312. my $_tt_filter = $context->filter('html')
  2313. || $context->throw($context->error);
  2314. $output .= $stash->get(['field_descs', 0, $stash->get('field'), 0]);
  2315. &$_tt_filter($output);
  2316. };
  2317. $output .= "</strong> field ";
  2318. #line 791 "template/en/default/global/user-error.html.tmpl"
  2319. if ($stash->get(['oldvalue', 0, 'defined', 0])) {
  2320. $output .= "\n from <em>";
  2321. #line 790 "template/en/default/global/user-error.html.tmpl"
  2322. # FILTER
  2323. $output .= do {
  2324. my $output = '';
  2325. my $_tt_filter = $context->filter('html')
  2326. || $context->throw($context->error);
  2327. $output .= $stash->get(['oldvalue', 0, 'join', [ ', ' ]]);
  2328. &$_tt_filter($output);
  2329. };
  2330. $output .= "</em>";
  2331. }
  2332. #line 794 "template/en/default/global/user-error.html.tmpl"
  2333. if ($stash->get(['newvalue', 0, 'defined', 0])) {
  2334. $output .= "\n to <em>";
  2335. #line 793 "template/en/default/global/user-error.html.tmpl"
  2336. # FILTER
  2337. $output .= do {
  2338. my $output = '';
  2339. my $_tt_filter = $context->filter('html')
  2340. || $context->throw($context->error);
  2341. $output .= $stash->get(['newvalue', 0, 'join', [ ', ' ]]);
  2342. &$_tt_filter($output);
  2343. };
  2344. $output .= "</em>";
  2345. }
  2346. $output .= "\n , but only";
  2347. #line 800 "template/en/default/global/user-error.html.tmpl"
  2348. if ($stash->get('privs') < '3') {
  2349. $output .= "\n the assignee";
  2350. #line 798 "template/en/default/global/user-error.html.tmpl"
  2351. if ($stash->get('privs') < '2') {
  2352. $output .= " or reporter ";
  2353. }
  2354. $output .= "\n of the ";
  2355. #line 799 "template/en/default/global/user-error.html.tmpl"
  2356. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2357. $output .= ", or";
  2358. }
  2359. $output .= "\n a user with the required permissions may change that field.\n";
  2360. }
  2361. elsif ($stash->get('error') eq 'illegal_change_deps') {
  2362. #line 804 "template/en/default/global/user-error.html.tmpl"
  2363. $stash->set('title', 'Not allowed');
  2364. $output .= "\n You tried to change the \n <strong>";
  2365. #line 806 "template/en/default/global/user-error.html.tmpl"
  2366. # FILTER
  2367. $output .= do {
  2368. my $output = '';
  2369. my $_tt_filter = $context->filter('html')
  2370. || $context->throw($context->error);
  2371. $output .= $stash->get(['field_descs', 0, $stash->get('field'), 0]);
  2372. &$_tt_filter($output);
  2373. };
  2374. $output .= "</strong> field \n but only a user allowed to edit \n both related ";
  2375. #line 808 "template/en/default/global/user-error.html.tmpl"
  2376. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  2377. $output .= " may change that field.\n";
  2378. }
  2379. elsif ($stash->get('error') eq 'illegal_changed_in_last_x_days') {
  2380. #line 811 "template/en/default/global/user-error.html.tmpl"
  2381. $stash->set('title', 'Your Search Makes No Sense');
  2382. $output .= "\n The <em>Changed in last ___ days</em> field must be a simple number. \n You entered <tt>";
  2383. #line 813 "template/en/default/global/user-error.html.tmpl"
  2384. # FILTER
  2385. $output .= do {
  2386. my $output = '';
  2387. my $_tt_filter = $context->filter('html')
  2388. || $context->throw($context->error);
  2389. $output .= $stash->get('value');
  2390. &$_tt_filter($output);
  2391. };
  2392. $output .= "</tt>, which isn't.\n ";
  2393. }
  2394. elsif ($stash->get('error') eq 'illegal_date') {
  2395. #line 816 "template/en/default/global/user-error.html.tmpl"
  2396. $stash->set('title', 'Illegal Date');
  2397. $output .= "\n '<tt>";
  2398. #line 817 "template/en/default/global/user-error.html.tmpl"
  2399. # FILTER
  2400. $output .= do {
  2401. my $output = '';
  2402. my $_tt_filter = $context->filter('html')
  2403. || $context->throw($context->error);
  2404. $output .= $stash->get('date');
  2405. &$_tt_filter($output);
  2406. };
  2407. $output .= "</tt>' is not a legal date.";
  2408. #line 820 "template/en/default/global/user-error.html.tmpl"
  2409. if ($stash->get('format')) {
  2410. $output .= "\n Please use the format '<tt>";
  2411. #line 819 "template/en/default/global/user-error.html.tmpl"
  2412. # FILTER
  2413. $output .= do {
  2414. my $output = '';
  2415. my $_tt_filter = $context->filter('html')
  2416. || $context->throw($context->error);
  2417. $output .= $stash->get('format');
  2418. &$_tt_filter($output);
  2419. };
  2420. $output .= "</tt>'.";
  2421. }
  2422. $output .= "\n ";
  2423. }
  2424. elsif ($stash->get('error') eq 'illegal_email_address') {
  2425. #line 823 "template/en/default/global/user-error.html.tmpl"
  2426. $stash->set('title', 'Invalid Email Address');
  2427. $output .= "\n The e-mail address you entered (<b>";
  2428. #line 824 "template/en/default/global/user-error.html.tmpl"
  2429. # FILTER
  2430. $output .= do {
  2431. my $output = '';
  2432. my $_tt_filter = $context->filter('html')
  2433. || $context->throw($context->error);
  2434. $output .= $stash->get('addr');
  2435. &$_tt_filter($output);
  2436. };
  2437. $output .= "</b>) \n didn't pass our syntax checking for a legal email address.";
  2438. #line 831 "template/en/default/global/user-error.html.tmpl"
  2439. if ($stash->get('default')) {
  2440. $output .= "\n A legal address must contain exactly one '\@',\n and at least one '.' after the \@.";
  2441. }
  2442. else {
  2443. $output .= "\n ";
  2444. #line 830 "template/en/default/global/user-error.html.tmpl"
  2445. $output .= $stash->get(['Param', [ 'emailregexpdesc' ]]);
  2446. }
  2447. $output .= "\n It must also not contain any of these special characters:\n <tt>\\ ( ) &amp; &lt; &gt; , ; : &quot; [ ]</tt>, or any whitespace.\n ";
  2448. }
  2449. elsif ($stash->get('error') eq 'illegal_frequency') {
  2450. #line 836 "template/en/default/global/user-error.html.tmpl"
  2451. $stash->set('title', 'Too Frequent');
  2452. $output .= "\n Unless you are an administrator, you may not create series which are \n run more often than once every ";
  2453. #line 838 "template/en/default/global/user-error.html.tmpl"
  2454. # FILTER
  2455. $output .= do {
  2456. my $output = '';
  2457. my $_tt_filter = $context->filter('html')
  2458. || $context->throw($context->error);
  2459. $output .= $stash->get('minimum');
  2460. &$_tt_filter($output);
  2461. };
  2462. $output .= " days.\n ";
  2463. }
  2464. elsif ($stash->get('error') eq 'illegal_group_control_combination') {
  2465. #line 841 "template/en/default/global/user-error.html.tmpl"
  2466. $stash->set('title', 'Your Group Control Combination Is Illegal');
  2467. #line 842 "template/en/default/global/user-error.html.tmpl"
  2468. $stash->set('admindocslinks', { 'groups.html' => 'Assigning Group Controls to Products' });
  2469. $output .= "\n Your group control combination for group &quot;";
  2470. #line 844 "template/en/default/global/user-error.html.tmpl"
  2471. # FILTER
  2472. $output .= do {
  2473. my $output = '';
  2474. my $_tt_filter = $context->filter('html')
  2475. || $context->throw($context->error);
  2476. $output .= $stash->get('groupname');
  2477. &$_tt_filter($output);
  2478. };
  2479. $output .= "&quot; is illegal.\n";
  2480. }
  2481. elsif ($stash->get('error') eq 'illegal_is_obsolete') {
  2482. #line 847 "template/en/default/global/user-error.html.tmpl"
  2483. $stash->set('title', 'Your Search Makes No Sense');
  2484. $output .= "\n The only legal values for the <em>Attachment is obsolete</em> field are\n 0 and 1.\n";
  2485. }
  2486. elsif ($stash->get('error') eq 'illegal_query_name') {
  2487. #line 852 "template/en/default/global/user-error.html.tmpl"
  2488. $stash->set('title', 'Illegal Search Name');
  2489. $output .= "\n The name of your search cannot contain any of the following characters: \n &lt;, &gt;, &amp;.\n";
  2490. }
  2491. elsif ($stash->get('error') eq 'illegal_series_creation') {
  2492. #line 857 "template/en/default/global/user-error.html.tmpl"
  2493. $stash->set('admindocslinks', { 'groups.html' => 'Group security' });
  2494. #line 858 "template/en/default/global/user-error.html.tmpl"
  2495. $stash->set('docslinks', { 'reporting.html' => 'Reporting' });
  2496. $output .= "\n You are not authorized to create series.\n ";
  2497. }
  2498. elsif ($stash->get('error') eq 'illegal_series_edit') {
  2499. #line 862 "template/en/default/global/user-error.html.tmpl"
  2500. $stash->set('admindocslinks', { 'groups.html' => 'Group security' });
  2501. #line 863 "template/en/default/global/user-error.html.tmpl"
  2502. $stash->set('docslinks', { 'reporting.html' => 'Reporting' });
  2503. $output .= "\n You are not authorized to edit this series. To do this, you must either\n be its creator, or an administrator.\n";
  2504. }
  2505. elsif ($stash->get('error') eq 'illegal_time') {
  2506. #line 868 "template/en/default/global/user-error.html.tmpl"
  2507. $stash->set('title', 'Illegal Time');
  2508. $output .= "\n '<tt>";
  2509. #line 869 "template/en/default/global/user-error.html.tmpl"
  2510. # FILTER
  2511. $output .= do {
  2512. my $output = '';
  2513. my $_tt_filter = $context->filter('html')
  2514. || $context->throw($context->error);
  2515. $output .= $stash->get('time');
  2516. &$_tt_filter($output);
  2517. };
  2518. $output .= "</tt>' is not a legal time.";
  2519. #line 872 "template/en/default/global/user-error.html.tmpl"
  2520. if ($stash->get('format')) {
  2521. $output .= "\n Please use the format '<tt>";
  2522. #line 871 "template/en/default/global/user-error.html.tmpl"
  2523. # FILTER
  2524. $output .= do {
  2525. my $output = '';
  2526. my $_tt_filter = $context->filter('html')
  2527. || $context->throw($context->error);
  2528. $output .= $stash->get('format');
  2529. &$_tt_filter($output);
  2530. };
  2531. $output .= "</tt>'.";
  2532. }
  2533. $output .= "\n";
  2534. }
  2535. elsif ($stash->get('error') eq 'illegal_regexp') {
  2536. #line 875 "template/en/default/global/user-error.html.tmpl"
  2537. $stash->set('title', 'Illegal Regular Expression');
  2538. $output .= "\n The regular expression you provided ";
  2539. #line 876 "template/en/default/global/user-error.html.tmpl"
  2540. # FILTER
  2541. $output .= do {
  2542. my $output = '';
  2543. my $_tt_filter = $context->filter('html')
  2544. || $context->throw($context->error);
  2545. $output .= $stash->get('value');
  2546. &$_tt_filter($output);
  2547. };
  2548. $output .= " is not valid.\n The error was: ";
  2549. #line 877 "template/en/default/global/user-error.html.tmpl"
  2550. # FILTER
  2551. $output .= do {
  2552. my $output = '';
  2553. my $_tt_filter = $context->filter('html')
  2554. || $context->throw($context->error);
  2555. $output .= $stash->get('dberror');
  2556. &$_tt_filter($output);
  2557. };
  2558. $output .= ".\n ";
  2559. }
  2560. elsif ($stash->get('error') eq 'insufficient_data_points') {
  2561. #line 880 "template/en/default/global/user-error.html.tmpl"
  2562. $stash->set('docslinks', { 'reporting.html' => 'Reporting' });
  2563. $output .= "\n We don't have enough data points to make a graph (yet).\n ";
  2564. }
  2565. elsif ($stash->get('error') eq 'invalid_attach_id') {
  2566. #line 884 "template/en/default/global/user-error.html.tmpl"
  2567. $stash->set('title', 'Invalid Attachment ID');
  2568. $output .= "\n The attachment id ";
  2569. #line 885 "template/en/default/global/user-error.html.tmpl"
  2570. # FILTER
  2571. $output .= do {
  2572. my $output = '';
  2573. my $_tt_filter = $context->filter('html')
  2574. || $context->throw($context->error);
  2575. $output .= $stash->get('attach_id');
  2576. &$_tt_filter($output);
  2577. };
  2578. $output .= " is invalid.\n";
  2579. }
  2580. elsif ($stash->get('error') eq 'bug_id_does_not_exist') {
  2581. #line 888 "template/en/default/global/user-error.html.tmpl"
  2582. # CAPTURE
  2583. $stash->set('title', do {
  2584. my $output = '';
  2585. $output .= "Invalid ";
  2586. #line 888 "template/en/default/global/user-error.html.tmpl"
  2587. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  2588. $output .= " ID";
  2589. $output;
  2590. });
  2591. #line 889 "template/en/default/global/user-error.html.tmpl"
  2592. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  2593. $output .= " #";
  2594. #line 889 "template/en/default/global/user-error.html.tmpl"
  2595. # FILTER
  2596. $output .= do {
  2597. my $output = '';
  2598. my $_tt_filter = $context->filter('html')
  2599. || $context->throw($context->error);
  2600. $output .= $stash->get('bug_id');
  2601. &$_tt_filter($output);
  2602. };
  2603. $output .= " does not exist.\n ";
  2604. }
  2605. elsif ($stash->get('error') eq 'improper_bug_id_field_value') {
  2606. #line 894 "template/en/default/global/user-error.html.tmpl"
  2607. # CAPTURE
  2608. $stash->set('title', do {
  2609. my $output = '';
  2610. #line 893 "template/en/default/global/user-error.html.tmpl"
  2611. if ($stash->get('bug_id')) {
  2612. $output .= "Invalid ";
  2613. }
  2614. else {
  2615. $output .= "Missing ";
  2616. }
  2617. #line 893 "template/en/default/global/user-error.html.tmpl"
  2618. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  2619. $output .= " ID";
  2620. $output;
  2621. });
  2622. #line 906 "template/en/default/global/user-error.html.tmpl"
  2623. if ($stash->get('bug_id')) {
  2624. $output .= "\n '";
  2625. #line 896 "template/en/default/global/user-error.html.tmpl"
  2626. # FILTER
  2627. $output .= do {
  2628. my $output = '';
  2629. my $_tt_filter = $context->filter('html')
  2630. || $context->throw($context->error);
  2631. $output .= $stash->get('bug_id');
  2632. &$_tt_filter($output);
  2633. };
  2634. $output .= "' is not a valid ";
  2635. #line 896 "template/en/default/global/user-error.html.tmpl"
  2636. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2637. $output .= " number";
  2638. #line 899 "template/en/default/global/user-error.html.tmpl"
  2639. if ($stash->get(['Param', [ 'usebugaliases' ]])) {
  2640. $output .= "\n nor an alias to ";
  2641. #line 898 "template/en/default/global/user-error.html.tmpl"
  2642. $output .= $stash->get(['terms', 0, 'abug', 0]);
  2643. }
  2644. $output .= ".";
  2645. }
  2646. else {
  2647. #line 904 "template/en/default/global/user-error.html.tmpl"
  2648. if ($stash->get('field')) {
  2649. $output .= "\n The '";
  2650. #line 902 "template/en/default/global/user-error.html.tmpl"
  2651. # FILTER
  2652. $output .= do {
  2653. my $output = '';
  2654. my $_tt_filter = $context->filter('html')
  2655. || $context->throw($context->error);
  2656. $output .= $stash->get(['field_descs', 0, $stash->get('field'), 0]);
  2657. &$_tt_filter($output);
  2658. };
  2659. $output .= "' field\n cannot be empty.";
  2660. }
  2661. $output .= "\n You must enter a valid ";
  2662. #line 905 "template/en/default/global/user-error.html.tmpl"
  2663. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2664. $output .= " number!";
  2665. }
  2666. $output .= "\n";
  2667. }
  2668. elsif ($stash->get('error') eq 'invalid_changedsince') {
  2669. #line 909 "template/en/default/global/user-error.html.tmpl"
  2670. $stash->set('title', 'Invalid \'Changed Since\'');
  2671. $output .= "\n The 'changed since' value, '";
  2672. #line 910 "template/en/default/global/user-error.html.tmpl"
  2673. # FILTER
  2674. $output .= do {
  2675. my $output = '';
  2676. my $_tt_filter = $context->filter('html')
  2677. || $context->throw($context->error);
  2678. $output .= $stash->get('changedsince');
  2679. &$_tt_filter($output);
  2680. };
  2681. $output .= "', must be an\n integer >= 0.\n";
  2682. }
  2683. elsif ($stash->get('error') eq 'invalid_content_type') {
  2684. #line 914 "template/en/default/global/user-error.html.tmpl"
  2685. $stash->set('title', 'Invalid Content-Type');
  2686. $output .= "\n The content type <em>";
  2687. #line 915 "template/en/default/global/user-error.html.tmpl"
  2688. # FILTER
  2689. $output .= do {
  2690. my $output = '';
  2691. my $_tt_filter = $context->filter('html')
  2692. || $context->throw($context->error);
  2693. $output .= $stash->get('contenttype');
  2694. &$_tt_filter($output);
  2695. };
  2696. $output .= "</em> is invalid.\n Valid types must be of the form <em>foo/bar</em> where <em>foo</em>\n is one of <em>";
  2697. #line 917 "template/en/default/global/user-error.html.tmpl"
  2698. # FILTER
  2699. $output .= do {
  2700. my $output = '';
  2701. my $_tt_filter = $context->filter('html')
  2702. || $context->throw($context->error);
  2703. $output .= 'application, audio, image, message, model, multipart, text, video';
  2704. &$_tt_filter($output);
  2705. };
  2706. $output .= "</em>.\n ";
  2707. }
  2708. elsif ($stash->get('error') eq 'invalid_context') {
  2709. #line 920 "template/en/default/global/user-error.html.tmpl"
  2710. $stash->set('title', 'Invalid Context');
  2711. $output .= "\n The context ";
  2712. #line 921 "template/en/default/global/user-error.html.tmpl"
  2713. # FILTER
  2714. $output .= do {
  2715. my $output = '';
  2716. my $_tt_filter = $context->filter('html')
  2717. || $context->throw($context->error);
  2718. $output .= $stash->get('context');
  2719. &$_tt_filter($output);
  2720. };
  2721. $output .= " is invalid (must be a number,\n \"file\" or \"patch\").\n";
  2722. }
  2723. elsif ($stash->get('error') eq 'invalid_datasets') {
  2724. #line 925 "template/en/default/global/user-error.html.tmpl"
  2725. $stash->set('title', 'Invalid Datasets');
  2726. $output .= "\n Invalid datasets <em>";
  2727. #line 926 "template/en/default/global/user-error.html.tmpl"
  2728. # FILTER
  2729. $output .= do {
  2730. my $output = '';
  2731. my $_tt_filter = $context->filter('html')
  2732. || $context->throw($context->error);
  2733. $output .= $stash->get(['datasets', 0, 'join', [ ':' ]]);
  2734. &$_tt_filter($output);
  2735. };
  2736. $output .= "</em>. Only digits,\n letters and colons are allowed.\n";
  2737. }
  2738. elsif ($stash->get('error') eq 'invalid_format') {
  2739. #line 930 "template/en/default/global/user-error.html.tmpl"
  2740. $stash->set('title', 'Invalid Format');
  2741. $output .= "\n The format \"";
  2742. #line 931 "template/en/default/global/user-error.html.tmpl"
  2743. # FILTER
  2744. $output .= do {
  2745. my $output = '';
  2746. my $_tt_filter = $context->filter('html')
  2747. || $context->throw($context->error);
  2748. $output .= $stash->get('format');
  2749. &$_tt_filter($output);
  2750. };
  2751. $output .= "\" is invalid (must be one of";
  2752. #line 934 "template/en/default/global/user-error.html.tmpl"
  2753. # FOREACH
  2754. do {
  2755. my ($_tt_value, $_tt_error, $_tt_oldloop);
  2756. my $_tt_list = $stash->get('formats');
  2757. unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {
  2758. $_tt_list = Template::Config->iterator($_tt_list)
  2759. || die $Template::Config::ERROR, "\n";
  2760. }
  2761. ($_tt_value, $_tt_error) = $_tt_list->get_first();
  2762. eval { $_tt_oldloop = $stash->get('loop') };
  2763. $stash->set('loop', $_tt_list);
  2764. eval {
  2765. FOR1: while (! $_tt_error) {
  2766. $stash->{'my_format'} = $_tt_value;
  2767. $output .= "\n \"";
  2768. #line 933 "template/en/default/global/user-error.html.tmpl"
  2769. # FILTER
  2770. $output .= do {
  2771. my $output = '';
  2772. my $_tt_filter = $context->filter('html')
  2773. || $context->throw($context->error);
  2774. $output .= $stash->get('my_format');
  2775. &$_tt_filter($output);
  2776. };
  2777. $output .= "\"";;
  2778. ($_tt_value, $_tt_error) = $_tt_list->get_next();
  2779. }
  2780. };
  2781. $stash->set('loop', $_tt_oldloop);
  2782. die $@ if $@;
  2783. $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;
  2784. die $_tt_error if $_tt_error;
  2785. };
  2786. $output .= "\n ).\n";
  2787. }
  2788. elsif ($stash->get('error') eq 'invalid_group_ID') {
  2789. #line 938 "template/en/default/global/user-error.html.tmpl"
  2790. $stash->set('title', 'Invalid group ID');
  2791. $output .= "\n The group you specified doesn't exist.\n";
  2792. }
  2793. elsif ($stash->get('error') eq 'invalid_group_name') {
  2794. #line 942 "template/en/default/global/user-error.html.tmpl"
  2795. $stash->set('title', 'Invalid group name');
  2796. $output .= "\n The group you specified, ";
  2797. #line 943 "template/en/default/global/user-error.html.tmpl"
  2798. # FILTER
  2799. $output .= do {
  2800. my $output = '';
  2801. my $_tt_filter = $context->filter('html')
  2802. || $context->throw($context->error);
  2803. $output .= $stash->get('name');
  2804. &$_tt_filter($output);
  2805. };
  2806. $output .= ", is not valid here.\n";
  2807. }
  2808. elsif ($stash->get('error') eq 'invalid_maxrows') {
  2809. #line 946 "template/en/default/global/user-error.html.tmpl"
  2810. $stash->set('title', 'Invalid Max Rows');
  2811. $output .= "\n The maximum number of rows, '";
  2812. #line 947 "template/en/default/global/user-error.html.tmpl"
  2813. # FILTER
  2814. $output .= do {
  2815. my $output = '';
  2816. my $_tt_filter = $context->filter('html')
  2817. || $context->throw($context->error);
  2818. $output .= $stash->get('maxrows');
  2819. &$_tt_filter($output);
  2820. };
  2821. $output .= "', must be\n a positive integer.\n";
  2822. }
  2823. elsif ($stash->get('error') eq 'invalid_parameter') {
  2824. #line 951 "template/en/default/global/user-error.html.tmpl"
  2825. $stash->set('title', 'Invalid Parameter');
  2826. $output .= "\n The new value for ";
  2827. #line 952 "template/en/default/global/user-error.html.tmpl"
  2828. # FILTER
  2829. $output .= do {
  2830. my $output = '';
  2831. my $_tt_filter = $context->filter('html')
  2832. || $context->throw($context->error);
  2833. $output .= $stash->get('name');
  2834. &$_tt_filter($output);
  2835. };
  2836. $output .= " is invalid: ";
  2837. #line 952 "template/en/default/global/user-error.html.tmpl"
  2838. # FILTER
  2839. $output .= do {
  2840. my $output = '';
  2841. my $_tt_filter = $context->filter('html')
  2842. || $context->throw($context->error);
  2843. $output .= $stash->get('err');
  2844. &$_tt_filter($output);
  2845. };
  2846. $output .= ".\n";
  2847. }
  2848. elsif ($stash->get('error') eq 'invalid_product_name') {
  2849. #line 955 "template/en/default/global/user-error.html.tmpl"
  2850. $stash->set('title', 'Invalid Product Name');
  2851. $output .= "\n The product name '";
  2852. #line 956 "template/en/default/global/user-error.html.tmpl"
  2853. # FILTER
  2854. $output .= do {
  2855. my $output = '';
  2856. my $_tt_filter = $context->filter('html')
  2857. || $context->throw($context->error);
  2858. $output .= $stash->get('product');
  2859. &$_tt_filter($output);
  2860. };
  2861. $output .= "' is invalid or does not exist.\n";
  2862. }
  2863. elsif ($stash->get('error') eq 'invalid_regexp') {
  2864. #line 959 "template/en/default/global/user-error.html.tmpl"
  2865. $stash->set('title', 'Invalid regular expression');
  2866. $output .= "\n The regular expression you entered is invalid.\n";
  2867. }
  2868. elsif ($stash->get('error') eq 'invalid_user_group') {
  2869. #line 963 "template/en/default/global/user-error.html.tmpl"
  2870. $stash->set('title', 'Invalid User Group');
  2871. #line 964 "template/en/default/global/user-error.html.tmpl"
  2872. if ($stash->get(['users', 0, 'size', 0]) > 1) {
  2873. $output .= " Users ";
  2874. }
  2875. else {
  2876. $output .= " User ";
  2877. }
  2878. $output .= "\n '";
  2879. #line 965 "template/en/default/global/user-error.html.tmpl"
  2880. # FILTER
  2881. $output .= do {
  2882. my $output = '';
  2883. my $_tt_filter = $context->filter('html')
  2884. || $context->throw($context->error);
  2885. $output .= $stash->get(['users', 0, 'join', [ ', ' ]]);
  2886. &$_tt_filter($output);
  2887. };
  2888. $output .= "'";
  2889. #line 966 "template/en/default/global/user-error.html.tmpl"
  2890. if ($stash->get(['users', 0, 'size', 0]) > 1) {
  2891. $output .= " are ";
  2892. }
  2893. else {
  2894. $output .= " is ";
  2895. }
  2896. $output .= "\n not able to edit the";
  2897. #line 970 "template/en/default/global/user-error.html.tmpl"
  2898. if ($stash->get('product')) {
  2899. $output .= "\n '";
  2900. #line 969 "template/en/default/global/user-error.html.tmpl"
  2901. # FILTER
  2902. $output .= do {
  2903. my $output = '';
  2904. my $_tt_filter = $context->filter('html')
  2905. || $context->throw($context->error);
  2906. $output .= $stash->get('product');
  2907. &$_tt_filter($output);
  2908. };
  2909. $output .= "'";
  2910. }
  2911. $output .= "\n ";
  2912. #line 971 "template/en/default/global/user-error.html.tmpl"
  2913. # FILTER
  2914. $output .= do {
  2915. my $output = '';
  2916. my $_tt_filter = $context->filter('html')
  2917. || $context->throw($context->error);
  2918. $output .= $stash->get(['field_descs', 0, 'product', 0]);
  2919. &$_tt_filter($output);
  2920. };
  2921. #line 978 "template/en/default/global/user-error.html.tmpl"
  2922. if ($stash->get('bug_id')) {
  2923. $output .= "\n for ";
  2924. #line 973 "template/en/default/global/user-error.html.tmpl"
  2925. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2926. $output .= " '";
  2927. #line 973 "template/en/default/global/user-error.html.tmpl"
  2928. # FILTER
  2929. $output .= do {
  2930. my $output = '';
  2931. my $_tt_filter = $context->filter('html')
  2932. || $context->throw($context->error);
  2933. $output .= $stash->get('bug_id');
  2934. &$_tt_filter($output);
  2935. };
  2936. $output .= "'.";
  2937. }
  2938. elsif ($stash->get('new')) {
  2939. $output .= "\n and may not be included on a new ";
  2940. #line 975 "template/en/default/global/user-error.html.tmpl"
  2941. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2942. $output .= ".";
  2943. }
  2944. else {
  2945. $output .= "\n for at least one ";
  2946. #line 977 "template/en/default/global/user-error.html.tmpl"
  2947. $output .= $stash->get(['terms', 0, 'bug', 0]);
  2948. $output .= " being changed.";
  2949. }
  2950. $output .= "\n";
  2951. }
  2952. elsif ($stash->get('error') eq 'invalid_username') {
  2953. #line 981 "template/en/default/global/user-error.html.tmpl"
  2954. $stash->set('title', 'Invalid Username');
  2955. $output .= "\n The name <tt>";
  2956. #line 982 "template/en/default/global/user-error.html.tmpl"
  2957. # FILTER
  2958. $output .= do {
  2959. my $output = '';
  2960. my $_tt_filter = $context->filter('html')
  2961. || $context->throw($context->error);
  2962. $output .= $stash->get('name');
  2963. &$_tt_filter($output);
  2964. };
  2965. $output .= "</tt> is not a valid username. \n Either you misspelled it, or the person has not\n registered for a ";
  2966. #line 984 "template/en/default/global/user-error.html.tmpl"
  2967. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  2968. $output .= " account.\n";
  2969. }
  2970. elsif ($stash->get('error') eq 'invalid_username_or_password') {
  2971. #line 987 "template/en/default/global/user-error.html.tmpl"
  2972. $stash->set('title', 'Invalid Username Or Password');
  2973. $output .= "\n The username or password you entered is not valid.\n ";
  2974. #line 997 "template/en/default/global/user-error.html.tmpl"
  2975. if ($stash->get('remaining') <= 2) {
  2976. $output .= "\n If you do not enter the correct password after \n ";
  2977. #line 994 "template/en/default/global/user-error.html.tmpl"
  2978. # FILTER
  2979. $output .= do {
  2980. my $output = '';
  2981. my $_tt_filter = $context->filter('html')
  2982. || $context->throw($context->error);
  2983. $output .= $stash->get('remaining');
  2984. &$_tt_filter($output);
  2985. };
  2986. $output .= " more attempt(s), you will be\n locked out of this account for \n ";
  2987. #line 996 "template/en/default/global/user-error.html.tmpl"
  2988. # FILTER
  2989. $output .= do {
  2990. my $output = '';
  2991. my $_tt_filter = $context->filter('html')
  2992. || $context->throw($context->error);
  2993. $output .= '30';
  2994. &$_tt_filter($output);
  2995. };
  2996. $output .= " minutes.";
  2997. }
  2998. $output .= "\n";
  2999. }
  3000. elsif ($stash->get('error') eq 'json_rpc_get_method_required') {
  3001. $output .= "\n When using JSON-RPC over GET, you must specify a 'method'\n parameter. See the documentation at\n ";
  3002. #line 1002 "template/en/default/global/user-error.html.tmpl"
  3003. # FILTER
  3004. $output .= do {
  3005. my $output = '';
  3006. my $_tt_filter = $context->filter('html')
  3007. || $context->throw($context->error);
  3008. $output .= $stash->get('docs_urlbase');
  3009. &$_tt_filter($output);
  3010. };
  3011. $output .= "api/Bugzilla/WebService/Server/JSONRPC.html\n";
  3012. }
  3013. elsif ($stash->get('error') eq 'json_rpc_invalid_params') {
  3014. $output .= "\n Could not parse the 'params' argument as valid JSON.\n Error: ";
  3015. #line 1006 "template/en/default/global/user-error.html.tmpl"
  3016. # FILTER
  3017. $output .= do {
  3018. my $output = '';
  3019. my $_tt_filter = $context->filter('html')
  3020. || $context->throw($context->error);
  3021. $output .= $stash->get('err_msg');
  3022. &$_tt_filter($output);
  3023. };
  3024. $output .= "\n Value: ";
  3025. #line 1007 "template/en/default/global/user-error.html.tmpl"
  3026. # FILTER
  3027. $output .= do {
  3028. my $output = '';
  3029. my $_tt_filter = $context->filter('html')
  3030. || $context->throw($context->error);
  3031. $output .= $stash->get('params');
  3032. &$_tt_filter($output);
  3033. };
  3034. $output .= "\n";
  3035. }
  3036. elsif ($stash->get('error') eq 'json_rpc_invalid_callback') {
  3037. $output .= "\n You cannot use '";
  3038. #line 1010 "template/en/default/global/user-error.html.tmpl"
  3039. # FILTER
  3040. $output .= do {
  3041. my $output = '';
  3042. my $_tt_filter = $context->filter('html')
  3043. || $context->throw($context->error);
  3044. $output .= $stash->get('callback');
  3045. &$_tt_filter($output);
  3046. };
  3047. $output .= "' as your 'callback' parameter.\n For security reasons, only letters, numbers, and the following\n characters are allowed in the 'callback' parameter: <code>[]._</code>\n";
  3048. }
  3049. elsif ($stash->get('error') eq 'json_rpc_post_only') {
  3050. $output .= "\n For security reasons, you must use HTTP POST to call the\n '";
  3051. #line 1016 "template/en/default/global/user-error.html.tmpl"
  3052. # FILTER
  3053. $output .= do {
  3054. my $output = '';
  3055. my $_tt_filter = $context->filter('html')
  3056. || $context->throw($context->error);
  3057. $output .= $stash->get('method');
  3058. &$_tt_filter($output);
  3059. };
  3060. $output .= "' method.\n";
  3061. }
  3062. elsif ($stash->get('error') eq 'keyword_already_exists') {
  3063. #line 1019 "template/en/default/global/user-error.html.tmpl"
  3064. $stash->set('title', 'Keyword Already Exists');
  3065. $output .= "\n A keyword with the name ";
  3066. #line 1020 "template/en/default/global/user-error.html.tmpl"
  3067. # FILTER
  3068. $output .= do {
  3069. my $output = '';
  3070. my $_tt_filter = $context->filter('html')
  3071. || $context->throw($context->error);
  3072. $output .= $stash->get('name');
  3073. &$_tt_filter($output);
  3074. };
  3075. $output .= " already exists.\n";
  3076. }
  3077. elsif ($stash->get('error') eq 'keyword_blank_description') {
  3078. #line 1023 "template/en/default/global/user-error.html.tmpl"
  3079. $stash->set('title', 'Blank Keyword Description Not Allowed');
  3080. $output .= "\n You must enter a non-blank description for the keyword.\n ";
  3081. }
  3082. elsif ($stash->get('error') eq 'keyword_blank_name') {
  3083. #line 1027 "template/en/default/global/user-error.html.tmpl"
  3084. $stash->set('title', 'Blank Keyword Name Not Allowed');
  3085. $output .= "\n You must enter a non-blank name for the keyword.\n ";
  3086. }
  3087. elsif ($stash->get('error') eq 'keyword_invalid_name') {
  3088. #line 1031 "template/en/default/global/user-error.html.tmpl"
  3089. $stash->set('title', 'Invalid Keyword Name');
  3090. $output .= "\n You may not use commas or whitespace in a keyword name.\n ";
  3091. }
  3092. elsif ($stash->get('error') eq 'local_file_too_large') {
  3093. #line 1035 "template/en/default/global/user-error.html.tmpl"
  3094. $stash->set('title', 'Local File Too Large');
  3095. $output .= "\n Local file uploads must not exceed ";
  3096. #line 1037 "template/en/default/global/user-error.html.tmpl"
  3097. $output .= $stash->get(['Param', [ 'maxlocalattachment' ]]);
  3098. $output .= " MB in size.\n";
  3099. }
  3100. elsif ($stash->get('error') eq 'login_needed_for_password_change') {
  3101. #line 1040 "template/en/default/global/user-error.html.tmpl"
  3102. $stash->set('title', 'Login Name Required');
  3103. $output .= "\n You must enter a login name when requesting to change your password.\n";
  3104. }
  3105. elsif ($stash->get('error') eq 'login_required_for_pronoun') {
  3106. #line 1044 "template/en/default/global/user-error.html.tmpl"
  3107. $stash->set('title', 'Login Name Required');
  3108. $output .= "\n You can't use %user% without being logged in, because %user% refers\n to your login name, which we don't know.\n";
  3109. }
  3110. elsif ($stash->get('error') eq 'login_required') {
  3111. $output .= "\n ";
  3112. $output .= "\n You must log in before using this part of ";
  3113. #line 1050 "template/en/default/global/user-error.html.tmpl"
  3114. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  3115. $output .= ".\n";
  3116. }
  3117. elsif ($stash->get('error') eq 'migrate_config_created') {
  3118. $output .= "\n The file <kbd>";
  3119. #line 1053 "template/en/default/global/user-error.html.tmpl"
  3120. # FILTER
  3121. $output .= do {
  3122. my $output = '';
  3123. my $_tt_filter = $context->filter('html')
  3124. || $context->throw($context->error);
  3125. $output .= $stash->get('file');
  3126. &$_tt_filter($output);
  3127. };
  3128. $output .= "</kbd> contains configuration\n variables that must be set before continuing with the migration.\n";
  3129. }
  3130. elsif ($stash->get('error') eq 'migrate_from_invalid') {
  3131. $output .= "\n '";
  3132. #line 1057 "template/en/default/global/user-error.html.tmpl"
  3133. # FILTER
  3134. $output .= do {
  3135. my $output = '';
  3136. my $_tt_filter = $context->filter('html')
  3137. || $context->throw($context->error);
  3138. $output .= $stash->get('from');
  3139. &$_tt_filter($output);
  3140. };
  3141. $output .= "' is not a valid type of ";
  3142. #line 1057 "template/en/default/global/user-error.html.tmpl"
  3143. $output .= $stash->get(['terms', 0, 'bug', 0]);
  3144. $output .= "-tracker\n to migrate from. See the contents of the <kbd>B";
  3145. $output .= "ugzilla/Migrate/</kbd>\n directory for a list of valid ";
  3146. #line 1059 "template/en/default/global/user-error.html.tmpl"
  3147. $output .= $stash->get(['terms', 0, 'bug', 0]);
  3148. $output .= "-trackers.\n";
  3149. }
  3150. elsif ($stash->get('error') eq 'milestone_already_exists') {
  3151. #line 1062 "template/en/default/global/user-error.html.tmpl"
  3152. $stash->set('title', 'Milestone Already Exists');
  3153. #line 1063 "template/en/default/global/user-error.html.tmpl"
  3154. $stash->set('admindocslinks', { 'products.html' => 'Administering products', 'milestones.html' => 'About Milestones' });
  3155. $output .= "\n The milestone '";
  3156. #line 1065 "template/en/default/global/user-error.html.tmpl"
  3157. # FILTER
  3158. $output .= do {
  3159. my $output = '';
  3160. my $_tt_filter = $context->filter('html')
  3161. || $context->throw($context->error);
  3162. $output .= $stash->get('name');
  3163. &$_tt_filter($output);
  3164. };
  3165. $output .= "' already exists for product '";
  3166. #line 1066 "template/en/default/global/user-error.html.tmpl"
  3167. # FILTER
  3168. $output .= do {
  3169. my $output = '';
  3170. my $_tt_filter = $context->filter('html')
  3171. || $context->throw($context->error);
  3172. $output .= $stash->get('product');
  3173. &$_tt_filter($output);
  3174. };
  3175. $output .= "'.\n";
  3176. }
  3177. elsif ($stash->get('error') eq 'milestone_blank_name') {
  3178. #line 1069 "template/en/default/global/user-error.html.tmpl"
  3179. $stash->set('title', 'Blank Milestone Name Not Allowed');
  3180. $output .= "\n You must enter a name for this milestone.\n";
  3181. }
  3182. elsif ($stash->get('error') eq 'milestone_is_default') {
  3183. #line 1073 "template/en/default/global/user-error.html.tmpl"
  3184. $stash->set('title', 'Default milestone not deletable');
  3185. #line 1074 "template/en/default/global/user-error.html.tmpl"
  3186. $stash->set('admindocslinks', { 'products.html' => 'Administering products', 'milestones.html' => 'About Milestones' });
  3187. $output .= "\n Sorry, but ";
  3188. #line 1076 "template/en/default/global/user-error.html.tmpl"
  3189. # FILTER
  3190. $output .= do {
  3191. my $output = '';
  3192. my $_tt_filter = $context->filter('html')
  3193. || $context->throw($context->error);
  3194. $output .= $stash->get(['milestone', 0, 'name', 0]);
  3195. &$_tt_filter($output);
  3196. };
  3197. $output .= " is the default milestone\n for the '";
  3198. #line 1077 "template/en/default/global/user-error.html.tmpl"
  3199. # FILTER
  3200. $output .= do {
  3201. my $output = '';
  3202. my $_tt_filter = $context->filter('html')
  3203. || $context->throw($context->error);
  3204. $output .= $stash->get(['milestone', 0, 'product', 0, 'name', 0]);
  3205. &$_tt_filter($output);
  3206. };
  3207. $output .= "' product, and so\n it cannot be deleted.\n";
  3208. }
  3209. elsif ($stash->get('error') eq 'milestone_name_too_long') {
  3210. #line 1081 "template/en/default/global/user-error.html.tmpl"
  3211. $stash->set('title', 'Milestone Name Is Too Long');
  3212. $output .= "\n The name of a milestone is limited to ";
  3213. #line 1082 "template/en/default/global/user-error.html.tmpl"
  3214. # FILTER
  3215. $output .= do {
  3216. my $output = '';
  3217. my $_tt_filter = $context->filter('html')
  3218. || $context->throw($context->error);
  3219. $output .= '20';
  3220. &$_tt_filter($output);
  3221. };
  3222. $output .= "\n characters. '";
  3223. #line 1083 "template/en/default/global/user-error.html.tmpl"
  3224. # FILTER
  3225. $output .= do {
  3226. my $output = '';
  3227. my $_tt_filter = $context->filter('html')
  3228. || $context->throw($context->error);
  3229. $output .= $stash->get('name');
  3230. &$_tt_filter($output);
  3231. };
  3232. $output .= "' is too long (";
  3233. #line 1083 "template/en/default/global/user-error.html.tmpl"
  3234. $output .= $stash->get(['name', 0, 'length', 0]);
  3235. $output .= " characters).\n";
  3236. }
  3237. elsif ($stash->get('error') eq 'milestone_required') {
  3238. #line 1086 "template/en/default/global/user-error.html.tmpl"
  3239. $stash->set('title', 'Milestone Required');
  3240. $output .= "\n You must select a target milestone for ";
  3241. #line 1087 "template/en/default/global/user-error.html.tmpl"
  3242. $output .= $stash->get(['terms', 0, 'bug', 0]);
  3243. $output .= "\n ";
  3244. #line 1088 "template/en/default/global/user-error.html.tmpl"
  3245. # FILTER
  3246. $output .= do {
  3247. my $output = '';
  3248. my $_tt_filter = $context->filter('html')
  3249. || $context->throw($context->error);
  3250. $output .= $stash->get(['bug', 0, 'id', 0]);
  3251. &$_tt_filter($output);
  3252. };
  3253. $output .= "\n if you are going to accept it. Part of accepting \n ";
  3254. #line 1090 "template/en/default/global/user-error.html.tmpl"
  3255. $output .= $stash->get(['terms', 0, 'abug', 0]);
  3256. $output .= " is giving an estimate of when it will be fixed.\n";
  3257. }
  3258. elsif ($stash->get('error') eq 'milestone_sortkey_invalid') {
  3259. #line 1093 "template/en/default/global/user-error.html.tmpl"
  3260. $stash->set('title', 'Invalid Milestone Sortkey');
  3261. $output .= "\n The sortkey '";
  3262. #line 1094 "template/en/default/global/user-error.html.tmpl"
  3263. # FILTER
  3264. $output .= do {
  3265. my $output = '';
  3266. my $_tt_filter = $context->filter('html')
  3267. || $context->throw($context->error);
  3268. $output .= $stash->get('sortkey');
  3269. &$_tt_filter($output);
  3270. };
  3271. $output .= "' is not in the range\n ";
  3272. #line 1095 "template/en/default/global/user-error.html.tmpl"
  3273. # FILTER
  3274. $output .= do {
  3275. my $output = '';
  3276. my $_tt_filter = $context->filter('html')
  3277. || $context->throw($context->error);
  3278. $output .= '-32768';
  3279. &$_tt_filter($output);
  3280. };
  3281. $output .= " &le; sortkey &le;\n ";
  3282. #line 1096 "template/en/default/global/user-error.html.tmpl"
  3283. # FILTER
  3284. $output .= do {
  3285. my $output = '';
  3286. my $_tt_filter = $context->filter('html')
  3287. || $context->throw($context->error);
  3288. $output .= '32767';
  3289. &$_tt_filter($output);
  3290. };
  3291. $output .= ".\n";
  3292. }
  3293. elsif ($stash->get('error') eq 'misarranged_dates') {
  3294. #line 1099 "template/en/default/global/user-error.html.tmpl"
  3295. $stash->set('title', 'Misarranged Dates');
  3296. $output .= "\n Your start date (";
  3297. #line 1100 "template/en/default/global/user-error.html.tmpl"
  3298. # FILTER
  3299. $output .= do {
  3300. my $output = '';
  3301. my $_tt_filter = $context->filter('html')
  3302. || $context->throw($context->error);
  3303. $output .= $stash->get('datefrom');
  3304. &$_tt_filter($output);
  3305. };
  3306. $output .= ") is after \n your end date (";
  3307. #line 1101 "template/en/default/global/user-error.html.tmpl"
  3308. # FILTER
  3309. $output .= do {
  3310. my $output = '';
  3311. my $_tt_filter = $context->filter('html')
  3312. || $context->throw($context->error);
  3313. $output .= $stash->get('dateto');
  3314. &$_tt_filter($output);
  3315. };
  3316. $output .= ").\n ";
  3317. }
  3318. elsif ($stash->get('error') eq 'missing_attachment_description') {
  3319. #line 1104 "template/en/default/global/user-error.html.tmpl"
  3320. $stash->set('title', 'Missing Attachment Description');
  3321. $output .= "\n You must enter a description for the attachment.\n ";
  3322. }
  3323. elsif ($stash->get('error') eq 'missing_category') {
  3324. #line 1108 "template/en/default/global/user-error.html.tmpl"
  3325. $stash->set('title', 'Missing Category');
  3326. $output .= "\n You did not specify a category for this series.\n";
  3327. }
  3328. elsif ($stash->get('error') eq 'missing_component') {
  3329. #line 1112 "template/en/default/global/user-error.html.tmpl"
  3330. $stash->set('title', 'Missing Component');
  3331. #line 1113 "template/en/default/global/user-error.html.tmpl"
  3332. $stash->set('admindocslinks', { 'products.html' => 'Administering products', 'components.html' => 'Creating a component' });
  3333. $output .= "\n Sorry, the product <em>";
  3334. #line 1115 "template/en/default/global/user-error.html.tmpl"
  3335. # FILTER
  3336. $output .= do {
  3337. my $output = '';
  3338. my $_tt_filter = $context->filter('html')
  3339. || $context->throw($context->error);
  3340. $output .= $stash->get(['product', 0, 'name', 0]);
  3341. &$_tt_filter($output);
  3342. };
  3343. $output .= "</em>\n has to have at least one component in order for you to\n enter ";
  3344. #line 1117 "template/en/default/global/user-error.html.tmpl"
  3345. $output .= $stash->get(['terms', 0, 'abug', 0]);
  3346. $output .= " into it.<br>";
  3347. #line 1124 "template/en/default/global/user-error.html.tmpl"
  3348. if ($stash->get(['user', 0, 'in_group', [ 'editcomponents', $stash->get(['product', 0, 'id', 0]) ]])) {
  3349. $output .= "\n <a href=\"editcomponents.cgi?action=add&amp;product=";
  3350. #line 1119 "template/en/default/global/user-error.html.tmpl"
  3351. # FILTER
  3352. $output .= do {
  3353. my $output = '';
  3354. my $_tt_filter = $context->filter('url_quote')
  3355. || $context->throw($context->error);
  3356. $output .= $stash->get(['product', 0, 'name', 0]);
  3357. &$_tt_filter($output);
  3358. };
  3359. $output .= "\">Create\n a new component</a>.";
  3360. }
  3361. else {
  3362. $output .= "\n Please contact ";
  3363. #line 1122 "template/en/default/global/user-error.html.tmpl"
  3364. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  3365. $output .= " and ask them\n to add a component to this product.";
  3366. }
  3367. $output .= "\n";
  3368. }
  3369. elsif ($stash->get('error') eq 'missing_content_type') {
  3370. #line 1127 "template/en/default/global/user-error.html.tmpl"
  3371. $stash->set('title', 'Missing Content-Type');
  3372. $output .= "\n You asked ";
  3373. #line 1128 "template/en/default/global/user-error.html.tmpl"
  3374. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  3375. $output .= " to auto-detect the content type, but\n your browser did not specify a content type when uploading the file, \n so you must enter a content type manually.\n ";
  3376. }
  3377. elsif ($stash->get('error') eq 'missing_content_type_method') {
  3378. #line 1133 "template/en/default/global/user-error.html.tmpl"
  3379. $stash->set('title', 'Missing Content-Type Determination Method');
  3380. $output .= "\n You must choose a method for determining the content type,\n either <em>auto-detect</em>, <em>select from list</em>, or <em>enter \n manually</em>.\n ";
  3381. }
  3382. elsif ($stash->get('error') eq 'missing_cookie') {
  3383. #line 1139 "template/en/default/global/user-error.html.tmpl"
  3384. $stash->set('title', 'Missing Cookie');
  3385. $output .= "\n Sorry, I seem to have lost the cookie that recorded\n the results of your last search. I'm afraid you will have to start\n again from the <a href=\"query.cgi\">search page</a>.\n ";
  3386. }
  3387. elsif ($stash->get('error') eq 'missing_datasets') {
  3388. #line 1145 "template/en/default/global/user-error.html.tmpl"
  3389. $stash->set('title', 'No Datasets Selected');
  3390. #line 1146 "template/en/default/global/user-error.html.tmpl"
  3391. $stash->set('docslinks', { 'reporting.html' => 'Reporting' });
  3392. $output .= "\n You must specify one or more datasets to plot.\n ";
  3393. }
  3394. elsif ($stash->get('error') eq 'missing_frequency') {
  3395. #line 1150 "template/en/default/global/user-error.html.tmpl"
  3396. $stash->set('title', 'Missing Frequency');
  3397. #line 1151 "template/en/default/global/user-error.html.tmpl"
  3398. $stash->set('docslinks', { 'reporting.html' => 'Reporting' });
  3399. $output .= "\n You did not specify a valid frequency for this series.\n ";
  3400. }
  3401. elsif ($stash->get('error') eq 'missing_name') {
  3402. #line 1155 "template/en/default/global/user-error.html.tmpl"
  3403. $stash->set('title', 'Missing Name');
  3404. #line 1156 "template/en/default/global/user-error.html.tmpl"
  3405. $stash->set('docslinks', { 'reporting.html' => 'Reporting' });
  3406. $output .= "\n You did not specify a name for this series.\n ";
  3407. }
  3408. elsif ($stash->get('error') eq 'missing_query') {
  3409. #line 1160 "template/en/default/global/user-error.html.tmpl"
  3410. $stash->set('title', 'Missing Search');
  3411. #line 1 "template/en/default/global/user-error.html.tmpl"
  3412. $stash->set('docslinks', { 'query.html' => ("Searching for " . $stash->get(['terms', 0, 'bugs', 0])), 'query.html#list' => ($stash->get(['terms', 0, 'Bug', 0]) . " lists") });
  3413. $output .= "\n The search named <em>";
  3414. #line 1163 "template/en/default/global/user-error.html.tmpl"
  3415. # FILTER
  3416. $output .= do {
  3417. my $output = '';
  3418. my $_tt_filter = $context->filter('html')
  3419. || $context->throw($context->error);
  3420. $output .= $stash->get('queryname');
  3421. &$_tt_filter($output);
  3422. };
  3423. $output .= "</em>";
  3424. #line 1168 "template/en/default/global/user-error.html.tmpl"
  3425. if ($stash->get('sharer_id') && $stash->get('sharer_id') ne $stash->get(['user', 0, 'id', 0])) {
  3426. $output .= "\n has not been made visible to you.";
  3427. }
  3428. else {
  3429. $output .= "\n does not exist.";
  3430. }
  3431. $output .= "\n";
  3432. }
  3433. elsif ($stash->get('error') eq 'missing_resolution') {
  3434. #line 1171 "template/en/default/global/user-error.html.tmpl"
  3435. $stash->set('title', 'Resolution Required');
  3436. $output .= "\n A valid resolution is required to mark ";
  3437. #line 1172 "template/en/default/global/user-error.html.tmpl"
  3438. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  3439. $output .= " as\n ";
  3440. #line 1173 "template/en/default/global/user-error.html.tmpl"
  3441. # FILTER
  3442. $output .= do {
  3443. my $output = '';
  3444. my $_tt_filter = $context->filter('html')
  3445. || $context->throw($context->error);
  3446. # FILTER
  3447. $output .= do {
  3448. my $output = '';
  3449. my $_tt_filter = $context->filter('upper')
  3450. || $context->throw($context->error);
  3451. $output .= $stash->get('status');
  3452. &$_tt_filter($output);
  3453. };
  3454. &$_tt_filter($output);
  3455. };
  3456. $output .= ".\n";
  3457. }
  3458. elsif ($stash->get('error') eq 'missing_subcategory') {
  3459. #line 1176 "template/en/default/global/user-error.html.tmpl"
  3460. $stash->set('title', 'Missing Subcategory');
  3461. $output .= "\n You did not specify a subcategory for this series.\n ";
  3462. }
  3463. elsif ($stash->get('error') eq 'missing_version') {
  3464. #line 1180 "template/en/default/global/user-error.html.tmpl"
  3465. $stash->set('title', 'Missing Version');
  3466. #line 1181 "template/en/default/global/user-error.html.tmpl"
  3467. $stash->set('admindocslinks', { 'versions.html' => 'Defining versions' });
  3468. $output .= "\n Sorry, the product <em>";
  3469. #line 1182 "template/en/default/global/user-error.html.tmpl"
  3470. # FILTER
  3471. $output .= do {
  3472. my $output = '';
  3473. my $_tt_filter = $context->filter('html')
  3474. || $context->throw($context->error);
  3475. $output .= $stash->get(['product', 0, 'name', 0]);
  3476. &$_tt_filter($output);
  3477. };
  3478. $output .= "</em>\n has to have at least one version in order for you to\n enter ";
  3479. #line 1184 "template/en/default/global/user-error.html.tmpl"
  3480. $output .= $stash->get(['terms', 0, 'abug', 0]);
  3481. $output .= " into it.<br>";
  3482. #line 1191 "template/en/default/global/user-error.html.tmpl"
  3483. if ($stash->get(['user', 0, 'in_group', [ 'editcomponents', $stash->get(['product', 0, 'id', 0]) ]])) {
  3484. $output .= "\n <a href=\"editversions.cgi?action=add&amp;product=";
  3485. #line 1186 "template/en/default/global/user-error.html.tmpl"
  3486. # FILTER
  3487. $output .= do {
  3488. my $output = '';
  3489. my $_tt_filter = $context->filter('url_quote')
  3490. || $context->throw($context->error);
  3491. $output .= $stash->get(['product', 0, 'name', 0]);
  3492. &$_tt_filter($output);
  3493. };
  3494. $output .= "\">Create\n a new version</a>.";
  3495. }
  3496. else {
  3497. $output .= "\n Please contact ";
  3498. #line 1189 "template/en/default/global/user-error.html.tmpl"
  3499. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  3500. $output .= " and ask them\n to add a version to this product.";
  3501. }
  3502. $output .= "\n";
  3503. }
  3504. elsif ($stash->get('error') eq 'multiple_alias_not_allowed') {
  3505. $output .= "\n You cannot set aliases when modifying multiple ";
  3506. #line 1194 "template/en/default/global/user-error.html.tmpl"
  3507. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  3508. $output .= "\n at once.\n";
  3509. }
  3510. elsif ($stash->get('error') eq 'need_quip') {
  3511. #line 1198 "template/en/default/global/user-error.html.tmpl"
  3512. $stash->set('title', 'Quip Required');
  3513. #line 1199 "template/en/default/global/user-error.html.tmpl"
  3514. $stash->set('docslinks', { 'quips.html' => 'About quips' });
  3515. $output .= "\n Please enter a quip in the text field.\n";
  3516. }
  3517. elsif ($stash->get('error') eq 'new_password_missing') {
  3518. #line 1203 "template/en/default/global/user-error.html.tmpl"
  3519. $stash->set('title', 'New Password Missing');
  3520. $output .= "\n You must enter a new password.\n";
  3521. }
  3522. elsif ($stash->get('error') eq 'no_axes_defined') {
  3523. #line 1207 "template/en/default/global/user-error.html.tmpl"
  3524. $stash->set('title', 'No Axes Defined');
  3525. #line 1208 "template/en/default/global/user-error.html.tmpl"
  3526. $stash->set('docslinks', { 'reporting.html' => 'Reporting' });
  3527. $output .= "\n You didn't define any axes to plot.\n";
  3528. }
  3529. elsif ($stash->get('error') eq 'no_bugs_chosen') {
  3530. #line 1212 "template/en/default/global/user-error.html.tmpl"
  3531. # CAPTURE
  3532. $stash->set('title', do {
  3533. my $output = '';
  3534. $output .= "No ";
  3535. #line 1212 "template/en/default/global/user-error.html.tmpl"
  3536. $output .= $stash->get(['terms', 0, 'Bugs', 0]);
  3537. $output .= " Selected";
  3538. $output;
  3539. });
  3540. $output .= "\n You apparently didn't choose any ";
  3541. #line 1213 "template/en/default/global/user-error.html.tmpl"
  3542. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  3543. #line 1218 "template/en/default/global/user-error.html.tmpl"
  3544. if ($stash->get('action') eq 'modify') {
  3545. $output .= "\n to modify.";
  3546. }
  3547. elsif ($stash->get('action') eq 'view') {
  3548. $output .= "\n to view.";
  3549. }
  3550. $output .= "\n";
  3551. }
  3552. elsif ($stash->get('error') eq 'no_bug_ids') {
  3553. #line 1221 "template/en/default/global/user-error.html.tmpl"
  3554. # CAPTURE
  3555. $stash->set('title', do {
  3556. my $output = '';
  3557. $output .= "No ";
  3558. #line 1221 "template/en/default/global/user-error.html.tmpl"
  3559. $output .= $stash->get(['terms', 0, 'Bugs', 0]);
  3560. $output .= " Selected";
  3561. $output;
  3562. });
  3563. $output .= "\n You didn't choose any ";
  3564. #line 1222 "template/en/default/global/user-error.html.tmpl"
  3565. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  3566. $output .= " to";
  3567. #line 1223 "template/en/default/global/user-error.html.tmpl"
  3568. if ($stash->get('action') eq 'add') {
  3569. $output .= " add to ";
  3570. }
  3571. else {
  3572. $output .= " remove from ";
  3573. }
  3574. $output .= "\n the ";
  3575. #line 1224 "template/en/default/global/user-error.html.tmpl"
  3576. # FILTER
  3577. $output .= do {
  3578. my $output = '';
  3579. my $_tt_filter = $context->filter('html')
  3580. || $context->throw($context->error);
  3581. $output .= $stash->get('tag');
  3582. &$_tt_filter($output);
  3583. };
  3584. $output .= " tag.\n";
  3585. }
  3586. elsif ($stash->get('error') eq 'no_bugs_in_list') {
  3587. #line 1227 "template/en/default/global/user-error.html.tmpl"
  3588. $stash->set('title', 'Delete Tag?');
  3589. $output .= "\n This will remove all ";
  3590. #line 1228 "template/en/default/global/user-error.html.tmpl"
  3591. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  3592. $output .= " from the\n <em>";
  3593. #line 1229 "template/en/default/global/user-error.html.tmpl"
  3594. # FILTER
  3595. $output .= do {
  3596. my $output = '';
  3597. my $_tt_filter = $context->filter('html')
  3598. || $context->throw($context->error);
  3599. $output .= $stash->get('name');
  3600. &$_tt_filter($output);
  3601. };
  3602. $output .= "</em> tag. This will delete the tag completely. Click\n <a href=\"buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=";
  3603. #line 1231 "template/en/default/global/user-error.html.tmpl"
  3604. # FILTER
  3605. $output .= do {
  3606. my $output = '';
  3607. my $_tt_filter = $context->filter('url_quote')
  3608. || $context->throw($context->error);
  3609. $output .= $stash->get('name');
  3610. &$_tt_filter($output);
  3611. };
  3612. $output .= "&amp;token=";
  3613. #line 1232 "template/en/default/global/user-error.html.tmpl"
  3614. # FILTER
  3615. $output .= do {
  3616. my $output = '';
  3617. my $_tt_filter = $context->filter('url_quote')
  3618. || $context->throw($context->error);
  3619. $output .= $stash->get(['issue_hash_token', [ [ $stash->get('query_id'), $stash->get('name') ] ]]);
  3620. &$_tt_filter($output);
  3621. };
  3622. $output .= "\">here</a>\n if you really want to delete it.\n";
  3623. }
  3624. elsif ($stash->get('error') eq 'no_bugs_to_remove') {
  3625. #line 1236 "template/en/default/global/user-error.html.tmpl"
  3626. $stash->set('title', 'No Tag Selected');
  3627. $output .= "\n You didn't select a tag from which to remove ";
  3628. #line 1237 "template/en/default/global/user-error.html.tmpl"
  3629. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  3630. $output .= ".\n";
  3631. }
  3632. elsif ($stash->get('error') eq 'no_initial_bug_status') {
  3633. #line 1 "template/en/default/global/user-error.html.tmpl"
  3634. $stash->set('title', ("No Initial " . $stash->get(['terms', 0, 'Bug', 0]) . " Status"));
  3635. $output .= "\n No ";
  3636. #line 1241 "template/en/default/global/user-error.html.tmpl"
  3637. $output .= $stash->get(['terms', 0, 'bug', 0]);
  3638. $output .= " status is available on ";
  3639. #line 1241 "template/en/default/global/user-error.html.tmpl"
  3640. $output .= $stash->get(['terms', 0, 'bug', 0]);
  3641. $output .= " creation.\n Please report the problem to ";
  3642. #line 1242 "template/en/default/global/user-error.html.tmpl"
  3643. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  3644. $output .= ".\n";
  3645. }
  3646. elsif ($stash->get('error') eq 'no_new_quips') {
  3647. #line 1245 "template/en/default/global/user-error.html.tmpl"
  3648. $stash->set('title', 'No New Quips');
  3649. #line 1246 "template/en/default/global/user-error.html.tmpl"
  3650. $stash->set('admindocslinks', { 'quips.html' => 'Controlling quip usage' });
  3651. $output .= "\n This site does not permit the addition of new quips.\n";
  3652. }
  3653. elsif ($stash->get('error') eq 'no_page_specified') {
  3654. #line 1250 "template/en/default/global/user-error.html.tmpl"
  3655. $stash->set('title', 'No Page Specified');
  3656. $output .= "\n You did not specify the id of a page to display.\n";
  3657. }
  3658. elsif ($stash->get('error') eq 'no_products') {
  3659. #line 1254 "template/en/default/global/user-error.html.tmpl"
  3660. $stash->set('title', 'No Products');
  3661. #line 1255 "template/en/default/global/user-error.html.tmpl"
  3662. $stash->set('admindocslinks', { 'products.html' => 'Setting up a product', 'components.html' => 'Adding components to products', 'groups.html' => 'Groups security' });
  3663. $output .= "\n Either no products have been defined to enter ";
  3664. #line 1258 "template/en/default/global/user-error.html.tmpl"
  3665. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  3666. $output .= " against or you have not\n been given access to any.\n";
  3667. }
  3668. elsif ($stash->get('error') eq 'number_not_numeric') {
  3669. #line 1262 "template/en/default/global/user-error.html.tmpl"
  3670. $stash->set('title', 'Numeric Value Required');
  3671. $output .= "\n The value '";
  3672. #line 1263 "template/en/default/global/user-error.html.tmpl"
  3673. # FILTER
  3674. $output .= do {
  3675. my $output = '';
  3676. my $_tt_filter = $context->filter('html')
  3677. || $context->throw($context->error);
  3678. $output .= $stash->get('num');
  3679. &$_tt_filter($output);
  3680. };
  3681. $output .= "' in the \n <em>";
  3682. #line 1264 "template/en/default/global/user-error.html.tmpl"
  3683. # FILTER
  3684. $output .= do {
  3685. my $output = '';
  3686. my $_tt_filter = $context->filter('html')
  3687. || $context->throw($context->error);
  3688. $output .= $stash->get(['field_descs', 0, $stash->get('field'), 0]);
  3689. &$_tt_filter($output);
  3690. };
  3691. $output .= "</em> field \n is not a numeric value.\n";
  3692. }
  3693. elsif ($stash->get('error') eq 'number_too_large') {
  3694. #line 1268 "template/en/default/global/user-error.html.tmpl"
  3695. $stash->set('title', 'Number Too Large');
  3696. $output .= "\n The value '";
  3697. #line 1269 "template/en/default/global/user-error.html.tmpl"
  3698. # FILTER
  3699. $output .= do {
  3700. my $output = '';
  3701. my $_tt_filter = $context->filter('html')
  3702. || $context->throw($context->error);
  3703. $output .= $stash->get('num');
  3704. &$_tt_filter($output);
  3705. };
  3706. $output .= "' in the \n <em>";
  3707. #line 1270 "template/en/default/global/user-error.html.tmpl"
  3708. # FILTER
  3709. $output .= do {
  3710. my $output = '';
  3711. my $_tt_filter = $context->filter('html')
  3712. || $context->throw($context->error);
  3713. $output .= $stash->get(['field_descs', 0, $stash->get('field'), 0]);
  3714. &$_tt_filter($output);
  3715. };
  3716. $output .= "</em> field \n is more than the maximum allowable value of '";
  3717. #line 1271 "template/en/default/global/user-error.html.tmpl"
  3718. # FILTER
  3719. $output .= do {
  3720. my $output = '';
  3721. my $_tt_filter = $context->filter('html')
  3722. || $context->throw($context->error);
  3723. $output .= $stash->get('max_num');
  3724. &$_tt_filter($output);
  3725. };
  3726. $output .= "'.\n";
  3727. }
  3728. elsif ($stash->get('error') eq 'number_too_small') {
  3729. #line 1274 "template/en/default/global/user-error.html.tmpl"
  3730. $stash->set('title', 'Number Too Small');
  3731. $output .= "\n The value '";
  3732. #line 1275 "template/en/default/global/user-error.html.tmpl"
  3733. # FILTER
  3734. $output .= do {
  3735. my $output = '';
  3736. my $_tt_filter = $context->filter('html')
  3737. || $context->throw($context->error);
  3738. $output .= $stash->get('num');
  3739. &$_tt_filter($output);
  3740. };
  3741. $output .= "' \n in the <em>";
  3742. #line 1276 "template/en/default/global/user-error.html.tmpl"
  3743. # FILTER
  3744. $output .= do {
  3745. my $output = '';
  3746. my $_tt_filter = $context->filter('html')
  3747. || $context->throw($context->error);
  3748. $output .= $stash->get(['field_descs', 0, $stash->get('field'), 0]);
  3749. &$_tt_filter($output);
  3750. };
  3751. $output .= "</em> field \n is less than the minimum allowable value of '";
  3752. #line 1277 "template/en/default/global/user-error.html.tmpl"
  3753. # FILTER
  3754. $output .= do {
  3755. my $output = '';
  3756. my $_tt_filter = $context->filter('html')
  3757. || $context->throw($context->error);
  3758. $output .= $stash->get('min_num');
  3759. &$_tt_filter($output);
  3760. };
  3761. $output .= "'.\n";
  3762. }
  3763. elsif ($stash->get('error') eq 'object_not_specified') {
  3764. #line 1280 "template/en/default/global/user-error.html.tmpl"
  3765. # CAPTURE
  3766. $stash->set('type', do {
  3767. my $output = '';
  3768. #line 1280 "template/en/default/global/user-error.html.tmpl"
  3769. $output .= $context->include('object_name', { 'class' => $stash->get('class') });
  3770. $output;
  3771. });
  3772. #line 1282 "template/en/default/global/user-error.html.tmpl"
  3773. # CAPTURE
  3774. $stash->set('title', do {
  3775. my $output = '';
  3776. #line 1281 "template/en/default/global/user-error.html.tmpl"
  3777. # FILTER
  3778. $output .= do {
  3779. my $output = '';
  3780. my $_tt_filter = $context->filter('html')
  3781. || $context->throw($context->error);
  3782. # FILTER
  3783. $output .= do {
  3784. my $output = '';
  3785. my $_tt_filter = $context->filter('ucfirst')
  3786. || $context->throw($context->error);
  3787. $output .= $stash->get('type');
  3788. &$_tt_filter($output);
  3789. };
  3790. &$_tt_filter($output);
  3791. };
  3792. $output .= " Not \n Specified";
  3793. $output;
  3794. });
  3795. $output .= "\n You must select/enter a ";
  3796. #line 1283 "template/en/default/global/user-error.html.tmpl"
  3797. # FILTER
  3798. $output .= do {
  3799. my $output = '';
  3800. my $_tt_filter = $context->filter('html')
  3801. || $context->throw($context->error);
  3802. $output .= $stash->get('type');
  3803. &$_tt_filter($output);
  3804. };
  3805. $output .= ".\n";
  3806. }
  3807. elsif ($stash->get('error') eq 'object_does_not_exist') {
  3808. #line 1286 "template/en/default/global/user-error.html.tmpl"
  3809. # CAPTURE
  3810. $stash->set('type', do {
  3811. my $output = '';
  3812. #line 1286 "template/en/default/global/user-error.html.tmpl"
  3813. $output .= $context->include('object_name', { 'class' => $stash->get('class') });
  3814. $output;
  3815. });
  3816. #line 1287 "template/en/default/global/user-error.html.tmpl"
  3817. # CAPTURE
  3818. $stash->set('title', do {
  3819. my $output = '';
  3820. $output .= "Invalid ";
  3821. #line 1287 "template/en/default/global/user-error.html.tmpl"
  3822. # FILTER
  3823. $output .= do {
  3824. my $output = '';
  3825. my $_tt_filter = $context->filter('html')
  3826. || $context->throw($context->error);
  3827. # FILTER
  3828. $output .= do {
  3829. my $output = '';
  3830. my $_tt_filter = $context->filter('ucfirst')
  3831. || $context->throw($context->error);
  3832. $output .= $stash->get('type');
  3833. &$_tt_filter($output);
  3834. };
  3835. &$_tt_filter($output);
  3836. };
  3837. $output;
  3838. });
  3839. $output .= "\n There is no ";
  3840. #line 1288 "template/en/default/global/user-error.html.tmpl"
  3841. # FILTER
  3842. $output .= do {
  3843. my $output = '';
  3844. my $_tt_filter = $context->filter('html')
  3845. || $context->throw($context->error);
  3846. $output .= $stash->get('type');
  3847. &$_tt_filter($output);
  3848. };
  3849. $output .= " ";
  3850. #line 1293 "template/en/default/global/user-error.html.tmpl"
  3851. if ($stash->get(['id', 0, 'defined', 0])) {
  3852. $output .= "\n with the id '";
  3853. #line 1290 "template/en/default/global/user-error.html.tmpl"
  3854. # FILTER
  3855. $output .= do {
  3856. my $output = '';
  3857. my $_tt_filter = $context->filter('html')
  3858. || $context->throw($context->error);
  3859. $output .= $stash->get('id');
  3860. &$_tt_filter($output);
  3861. };
  3862. $output .= "'";
  3863. }
  3864. else {
  3865. $output .= "\n named '";
  3866. #line 1292 "template/en/default/global/user-error.html.tmpl"
  3867. # FILTER
  3868. $output .= do {
  3869. my $output = '';
  3870. my $_tt_filter = $context->filter('html')
  3871. || $context->throw($context->error);
  3872. $output .= $stash->get('name');
  3873. &$_tt_filter($output);
  3874. };
  3875. $output .= "'";
  3876. }
  3877. #line 1296 "template/en/default/global/user-error.html.tmpl"
  3878. if ($stash->get(['product', 0, 'defined', 0])) {
  3879. $output .= "\n in the '";
  3880. #line 1295 "template/en/default/global/user-error.html.tmpl"
  3881. # FILTER
  3882. $output .= do {
  3883. my $output = '';
  3884. my $_tt_filter = $context->filter('html')
  3885. || $context->throw($context->error);
  3886. $output .= $stash->get(['product', 0, 'name', 0]);
  3887. &$_tt_filter($output);
  3888. };
  3889. $output .= "' product";
  3890. }
  3891. $output .= ".";
  3892. #line 1300 "template/en/default/global/user-error.html.tmpl"
  3893. if ($stash->get('class') eq 'Bugzilla::User') {
  3894. $output .= "\n Either you mis-typed the name or that user has not yet registered\n for a ";
  3895. #line 1299 "template/en/default/global/user-error.html.tmpl"
  3896. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  3897. $output .= " account.";
  3898. }
  3899. #line 1304 "template/en/default/global/user-error.html.tmpl"
  3900. if ($stash->get('class') eq 'Bugzilla::Keyword') {
  3901. $output .= "\n The legal keyword names are <a href=\"describekeywords.cgi\">listed\n here</a>.";
  3902. }
  3903. $output .= "\n";
  3904. }
  3905. elsif ($stash->get('error') eq 'old_password_incorrect') {
  3906. #line 1307 "template/en/default/global/user-error.html.tmpl"
  3907. $stash->set('title', 'Incorrect Old Password');
  3908. $output .= "\n You did not enter your old password correctly.\n";
  3909. }
  3910. elsif ($stash->get('error') eq 'old_password_required') {
  3911. #line 1311 "template/en/default/global/user-error.html.tmpl"
  3912. $stash->set('title', 'Old Password Required');
  3913. $output .= "\n You must enter your old password to change your email address.\n";
  3914. }
  3915. elsif ($stash->get('error') eq 'password_change_requests_not_allowed') {
  3916. #line 1315 "template/en/default/global/user-error.html.tmpl"
  3917. $stash->set('title', 'Password Change Requests Not Allowed');
  3918. $output .= "\n The system is not configured to allow password change requests.\n";
  3919. }
  3920. elsif ($stash->get('error') eq 'passwords_dont_match') {
  3921. #line 1319 "template/en/default/global/user-error.html.tmpl"
  3922. $stash->set('title', 'Passwords Don\'t Match');
  3923. $output .= "\n The two passwords you entered did not match.\n";
  3924. }
  3925. elsif ($stash->get('error') eq 'password_current_too_short') {
  3926. #line 1323 "template/en/default/global/user-error.html.tmpl"
  3927. $stash->set('title', 'New Password Required');
  3928. $output .= "\n Your password is currently less than\n ";
  3929. #line 1325 "template/en/default/global/user-error.html.tmpl"
  3930. # FILTER
  3931. $output .= do {
  3932. my $output = '';
  3933. my $_tt_filter = $context->filter('html')
  3934. || $context->throw($context->error);
  3935. $output .= '6';
  3936. &$_tt_filter($output);
  3937. };
  3938. $output .= " characters long,\n which is the new minimum length required for passwords.\n You must <a href=\"token.cgi?a=reqpw&loginname=";
  3939. #line 1327 "template/en/default/global/user-error.html.tmpl"
  3940. # FILTER
  3941. $output .= do {
  3942. my $output = '';
  3943. my $_tt_filter = $context->filter('html')
  3944. || $context->throw($context->error);
  3945. $output .= $stash->get(['locked_user', 0, 'email', 0]);
  3946. &$_tt_filter($output);
  3947. };
  3948. $output .= "\">\n request a new password</a> in order to log in again.\n";
  3949. }
  3950. elsif ($stash->get('error') eq 'password_too_short') {
  3951. #line 1331 "template/en/default/global/user-error.html.tmpl"
  3952. $stash->set('title', 'Password Too Short');
  3953. $output .= "\n The password must be at least\n ";
  3954. #line 1333 "template/en/default/global/user-error.html.tmpl"
  3955. # FILTER
  3956. $output .= do {
  3957. my $output = '';
  3958. my $_tt_filter = $context->filter('html')
  3959. || $context->throw($context->error);
  3960. $output .= '6';
  3961. &$_tt_filter($output);
  3962. };
  3963. $output .= " characters long.\n";
  3964. }
  3965. elsif ($stash->get('error') eq 'patch_too_large') {
  3966. #line 1336 "template/en/default/global/user-error.html.tmpl"
  3967. $stash->set('title', 'File Too Large');
  3968. $output .= "\n The file you are trying to attach is ";
  3969. #line 1337 "template/en/default/global/user-error.html.tmpl"
  3970. # FILTER
  3971. $output .= do {
  3972. my $output = '';
  3973. my $_tt_filter = $context->filter('html')
  3974. || $context->throw($context->error);
  3975. $output .= $stash->get('filesize');
  3976. &$_tt_filter($output);
  3977. };
  3978. $output .= " \n kilobytes (KB) in size.\n Patches cannot be more than ";
  3979. #line 1339 "template/en/default/global/user-error.html.tmpl"
  3980. $output .= $stash->get(['Param', [ 'maxattachmentsize' ]]);
  3981. $output .= " KB in size.\n Try splitting your patch into several pieces.\n";
  3982. }
  3983. elsif ($stash->get('error') eq 'product_access_denied') {
  3984. $output .= "\n Either the product \n ";
  3985. #line 1348 "template/en/default/global/user-error.html.tmpl"
  3986. if ($stash->get(['id', 0, 'defined', 0])) {
  3987. $output .= "\n with the id ";
  3988. #line 1345 "template/en/default/global/user-error.html.tmpl"
  3989. # FILTER
  3990. $output .= do {
  3991. my $output = '';
  3992. my $_tt_filter = $context->filter('html')
  3993. || $context->throw($context->error);
  3994. $output .= $stash->get('id');
  3995. &$_tt_filter($output);
  3996. };
  3997. }
  3998. else {
  3999. $output .= "\n '";
  4000. #line 1347 "template/en/default/global/user-error.html.tmpl"
  4001. # FILTER
  4002. $output .= do {
  4003. my $output = '';
  4004. my $_tt_filter = $context->filter('html')
  4005. || $context->throw($context->error);
  4006. $output .= $stash->get('name');
  4007. &$_tt_filter($output);
  4008. };
  4009. $output .= "'";
  4010. }
  4011. $output .= "\n does not exist or you don't have access to it.\n";
  4012. }
  4013. elsif ($stash->get('error') eq 'product_illegal_group') {
  4014. #line 1352 "template/en/default/global/user-error.html.tmpl"
  4015. $stash->set('title', 'Illegal Group');
  4016. #line 1353 "template/en/default/global/user-error.html.tmpl"
  4017. # FILTER
  4018. $output .= do {
  4019. my $output = '';
  4020. my $_tt_filter = $context->filter('html')
  4021. || $context->throw($context->error);
  4022. $output .= $stash->get(['group', 0, 'name', 0]);
  4023. &$_tt_filter($output);
  4024. };
  4025. $output .= " is not an active ";
  4026. #line 1353 "template/en/default/global/user-error.html.tmpl"
  4027. $output .= $stash->get(['terms', 0, 'bug', 0]);
  4028. $output .= " group\n and so you cannot edit group controls for it.\n";
  4029. }
  4030. elsif ($stash->get('error') eq 'product_name_already_in_use') {
  4031. #line 1357 "template/en/default/global/user-error.html.tmpl"
  4032. $stash->set('title', 'Product name already exists');
  4033. #line 1358 "template/en/default/global/user-error.html.tmpl"
  4034. $stash->set('admindocslinks', { 'products.html' => 'Administering products' });
  4035. $output .= "\n The product name '";
  4036. #line 1359 "template/en/default/global/user-error.html.tmpl"
  4037. # FILTER
  4038. $output .= do {
  4039. my $output = '';
  4040. my $_tt_filter = $context->filter('html')
  4041. || $context->throw($context->error);
  4042. $output .= $stash->get('product');
  4043. &$_tt_filter($output);
  4044. };
  4045. $output .= "' already exists.\n ";
  4046. }
  4047. elsif ($stash->get('error') eq 'product_name_diff_in_case') {
  4048. #line 1362 "template/en/default/global/user-error.html.tmpl"
  4049. $stash->set('title', 'Product name differs only in case');
  4050. #line 1363 "template/en/default/global/user-error.html.tmpl"
  4051. $stash->set('admindocslinks', { 'products.html' => 'Administering products' });
  4052. $output .= "\n The product name '";
  4053. #line 1364 "template/en/default/global/user-error.html.tmpl"
  4054. # FILTER
  4055. $output .= do {
  4056. my $output = '';
  4057. my $_tt_filter = $context->filter('html')
  4058. || $context->throw($context->error);
  4059. $output .= $stash->get('product');
  4060. &$_tt_filter($output);
  4061. };
  4062. $output .= "' differs from existing \n product '";
  4063. #line 1365 "template/en/default/global/user-error.html.tmpl"
  4064. # FILTER
  4065. $output .= do {
  4066. my $output = '';
  4067. my $_tt_filter = $context->filter('html')
  4068. || $context->throw($context->error);
  4069. $output .= $stash->get('existing_product');
  4070. &$_tt_filter($output);
  4071. };
  4072. $output .= "' only in case.\n";
  4073. }
  4074. elsif ($stash->get('error') eq 'product_name_too_long') {
  4075. #line 1368 "template/en/default/global/user-error.html.tmpl"
  4076. $stash->set('title', 'Product name too long');
  4077. $output .= "\n The name of a product is limited to ";
  4078. #line 1369 "template/en/default/global/user-error.html.tmpl"
  4079. # FILTER
  4080. $output .= do {
  4081. my $output = '';
  4082. my $_tt_filter = $context->filter('html')
  4083. || $context->throw($context->error);
  4084. $output .= '64';
  4085. &$_tt_filter($output);
  4086. };
  4087. $output .= "\n characters. '";
  4088. #line 1370 "template/en/default/global/user-error.html.tmpl"
  4089. # FILTER
  4090. $output .= do {
  4091. my $output = '';
  4092. my $_tt_filter = $context->filter('html')
  4093. || $context->throw($context->error);
  4094. $output .= $stash->get('name');
  4095. &$_tt_filter($output);
  4096. };
  4097. $output .= "' is too long (";
  4098. #line 1370 "template/en/default/global/user-error.html.tmpl"
  4099. $output .= $stash->get(['name', 0, 'length', 0]);
  4100. $output .= " characters).\n";
  4101. }
  4102. elsif ($stash->get('error') eq 'product_must_define_defaultmilestone') {
  4103. #line 1373 "template/en/default/global/user-error.html.tmpl"
  4104. $stash->set('title', 'Must define new default milestone');
  4105. #line 1374 "template/en/default/global/user-error.html.tmpl"
  4106. $stash->set('admindocslinks', { 'products.html' => 'Administering products', 'milestones.html' => 'About Milestones' });
  4107. $output .= "\n You must <a href=\"editmilestones.cgi?action=add&amp;product=";
  4108. #line 1376 "template/en/default/global/user-error.html.tmpl"
  4109. # FILTER
  4110. $output .= do {
  4111. my $output = '';
  4112. my $_tt_filter = $context->filter('url_quote')
  4113. || $context->throw($context->error);
  4114. $output .= $stash->get('product');
  4115. &$_tt_filter($output);
  4116. };
  4117. $output .= "\">\n create the milestone '";
  4118. #line 1377 "template/en/default/global/user-error.html.tmpl"
  4119. # FILTER
  4120. $output .= do {
  4121. my $output = '';
  4122. my $_tt_filter = $context->filter('html')
  4123. || $context->throw($context->error);
  4124. $output .= $stash->get('milestone');
  4125. &$_tt_filter($output);
  4126. };
  4127. $output .= "'</a> before\n it can be made the default milestone for product '";
  4128. #line 1378 "template/en/default/global/user-error.html.tmpl"
  4129. # FILTER
  4130. $output .= do {
  4131. my $output = '';
  4132. my $_tt_filter = $context->filter('html')
  4133. || $context->throw($context->error);
  4134. $output .= $stash->get('product');
  4135. &$_tt_filter($output);
  4136. };
  4137. $output .= "'.\n";
  4138. }
  4139. elsif ($stash->get('error') eq 'product_admin_denied') {
  4140. #line 1381 "template/en/default/global/user-error.html.tmpl"
  4141. $stash->set('title', 'Product Access Denied');
  4142. $output .= "\n You are not allowed to edit properties of product '";
  4143. #line 1382 "template/en/default/global/user-error.html.tmpl"
  4144. # FILTER
  4145. $output .= do {
  4146. my $output = '';
  4147. my $_tt_filter = $context->filter('html')
  4148. || $context->throw($context->error);
  4149. $output .= $stash->get('product');
  4150. &$_tt_filter($output);
  4151. };
  4152. $output .= "'.\n";
  4153. }
  4154. elsif ($stash->get('error') eq 'product_blank_name') {
  4155. #line 1385 "template/en/default/global/user-error.html.tmpl"
  4156. $stash->set('title', 'Blank Product Name Not Allowed');
  4157. #line 1386 "template/en/default/global/user-error.html.tmpl"
  4158. $stash->set('admindocslinks', { 'products.html' => 'Administering products' });
  4159. $output .= "\n You must enter a name for the product.\n ";
  4160. }
  4161. elsif ($stash->get('error') eq 'product_disabled') {
  4162. #line 1390 "template/en/default/global/user-error.html.tmpl"
  4163. # CAPTURE
  4164. $stash->set('title', do {
  4165. my $output = '';
  4166. $output .= "Product closed for ";
  4167. #line 1390 "template/en/default/global/user-error.html.tmpl"
  4168. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  4169. $output .= " Entry";
  4170. $output;
  4171. });
  4172. #line 1391 "template/en/default/global/user-error.html.tmpl"
  4173. $stash->set('admindocslinks', { 'products.html' => 'Administering products' });
  4174. $output .= "\n Sorry, entering ";
  4175. #line 1392 "template/en/default/global/user-error.html.tmpl"
  4176. $output .= $stash->get(['terms', 0, 'abug', 0]);
  4177. $output .= " into the\n product <em>";
  4178. #line 1393 "template/en/default/global/user-error.html.tmpl"
  4179. # FILTER
  4180. $output .= do {
  4181. my $output = '';
  4182. my $_tt_filter = $context->filter('html')
  4183. || $context->throw($context->error);
  4184. $output .= $stash->get(['product', 0, 'name', 0]);
  4185. &$_tt_filter($output);
  4186. };
  4187. $output .= "</em> has been disabled.\n";
  4188. }
  4189. elsif ($stash->get('error') eq 'product_edit_denied') {
  4190. #line 1396 "template/en/default/global/user-error.html.tmpl"
  4191. $stash->set('title', 'Product Edit Access Denied');
  4192. #line 1397 "template/en/default/global/user-error.html.tmpl"
  4193. $stash->set('admindocslinks', { 'products.html' => 'Administering products', 'groups.html' => 'Group security' });
  4194. $output .= "\n You are not permitted to edit ";
  4195. #line 1399 "template/en/default/global/user-error.html.tmpl"
  4196. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  4197. $output .= " in product \n ";
  4198. #line 1400 "template/en/default/global/user-error.html.tmpl"
  4199. # FILTER
  4200. $output .= do {
  4201. my $output = '';
  4202. my $_tt_filter = $context->filter('html')
  4203. || $context->throw($context->error);
  4204. $output .= $stash->get('product');
  4205. &$_tt_filter($output);
  4206. };
  4207. $output .= ".\n";
  4208. }
  4209. elsif ($stash->get('error') eq 'product_has_bugs') {
  4210. #line 1403 "template/en/default/global/user-error.html.tmpl"
  4211. # CAPTURE
  4212. $stash->set('title', do {
  4213. my $output = '';
  4214. $output .= "Product has ";
  4215. #line 1403 "template/en/default/global/user-error.html.tmpl"
  4216. $output .= $stash->get(['terms', 0, 'Bugs', 0]);
  4217. $output;
  4218. });
  4219. #line 1404 "template/en/default/global/user-error.html.tmpl"
  4220. $stash->set('admindocslinks', { 'products.html' => 'Administering products' });
  4221. $output .= "\n There are ";
  4222. #line 1405 "template/en/default/global/user-error.html.tmpl"
  4223. # FILTER
  4224. $output .= do {
  4225. my $output = '';
  4226. my $_tt_filter = $context->filter('html')
  4227. || $context->throw($context->error);
  4228. $output .= $stash->get('nb');
  4229. &$_tt_filter($output);
  4230. };
  4231. $output .= " ";
  4232. #line 1405 "template/en/default/global/user-error.html.tmpl"
  4233. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  4234. $output .= " entered for this product!\n You must move those ";
  4235. #line 1406 "template/en/default/global/user-error.html.tmpl"
  4236. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  4237. $output .= " to another product before you\n can delete this one.\n";
  4238. }
  4239. elsif ($stash->get('error') eq 'product_must_have_description') {
  4240. #line 1410 "template/en/default/global/user-error.html.tmpl"
  4241. $stash->set('title', 'Product needs Description');
  4242. #line 1411 "template/en/default/global/user-error.html.tmpl"
  4243. $stash->set('admindocslinks', { 'products.html' => 'Administering products' });
  4244. $output .= "\n You must enter a description for this product.\n";
  4245. }
  4246. elsif ($stash->get('error') eq 'product_must_have_version') {
  4247. #line 1415 "template/en/default/global/user-error.html.tmpl"
  4248. $stash->set('title', 'Product needs Version');
  4249. #line 1416 "template/en/default/global/user-error.html.tmpl"
  4250. $stash->set('admindocslinks', { 'products.html' => 'Administering products', 'versions.html' => 'Administering versions' });
  4251. $output .= "\n You must enter a valid version to create a new product.\n";
  4252. }
  4253. elsif ($stash->get('error') eq 'query_name_exists') {
  4254. #line 1421 "template/en/default/global/user-error.html.tmpl"
  4255. $stash->set('title', 'Search Name Already In Use');
  4256. $output .= "\n The name <em>";
  4257. #line 1422 "template/en/default/global/user-error.html.tmpl"
  4258. # FILTER
  4259. $output .= do {
  4260. my $output = '';
  4261. my $_tt_filter = $context->filter('html')
  4262. || $context->throw($context->error);
  4263. $output .= $stash->get('name');
  4264. &$_tt_filter($output);
  4265. };
  4266. $output .= "</em> is already used by another\n saved search. You first have to\n <a href=\"buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=";
  4267. #line 1425 "template/en/default/global/user-error.html.tmpl"
  4268. # FILTER
  4269. $output .= do {
  4270. my $output = '';
  4271. my $_tt_filter = $context->filter('url_quote')
  4272. || $context->throw($context->error);
  4273. $output .= $stash->get('name');
  4274. &$_tt_filter($output);
  4275. };
  4276. $output .= "&amp;token=";
  4277. #line 1426 "template/en/default/global/user-error.html.tmpl"
  4278. # FILTER
  4279. $output .= do {
  4280. my $output = '';
  4281. my $_tt_filter = $context->filter('url_quote')
  4282. || $context->throw($context->error);
  4283. $output .= $stash->get(['issue_hash_token', [ [ $stash->get('query_id'), $stash->get('name') ] ]]);
  4284. &$_tt_filter($output);
  4285. };
  4286. $output .= "\">delete</a>\n it if you really want to use this name.\n";
  4287. }
  4288. elsif ($stash->get('error') eq 'query_name_missing') {
  4289. #line 1430 "template/en/default/global/user-error.html.tmpl"
  4290. $stash->set('title', 'No Search Name Specified');
  4291. #line 1 "template/en/default/global/user-error.html.tmpl"
  4292. $stash->set('docslinks', { 'query.html#list' => ($stash->get(['terms', 0, 'Bug', 0]) . " lists") });
  4293. $output .= "\n You must enter a name for your search.\n";
  4294. }
  4295. elsif ($stash->get('error') eq 'query_name_too_long') {
  4296. #line 1435 "template/en/default/global/user-error.html.tmpl"
  4297. $stash->set('title', 'Query Name Too Long');
  4298. $output .= "\n The name of the query must be less than ";
  4299. #line 1436 "template/en/default/global/user-error.html.tmpl"
  4300. # FILTER
  4301. $output .= do {
  4302. my $output = '';
  4303. my $_tt_filter = $context->filter('html')
  4304. || $context->throw($context->error);
  4305. $output .= '64';
  4306. &$_tt_filter($output);
  4307. };
  4308. $output .= "\n characters long.\n";
  4309. }
  4310. elsif ($stash->get('error') eq 'quicksearch_unknown_field') {
  4311. #line 1440 "template/en/default/global/user-error.html.tmpl"
  4312. $stash->set('title', 'QuickSearch Error');
  4313. $output .= "\n There is a problem with your search:";
  4314. #line 1444 "template/en/default/global/user-error.html.tmpl"
  4315. # FOREACH
  4316. do {
  4317. my ($_tt_value, $_tt_error, $_tt_oldloop);
  4318. my $_tt_list = $stash->get('unknown');
  4319. unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {
  4320. $_tt_list = Template::Config->iterator($_tt_list)
  4321. || die $Template::Config::ERROR, "\n";
  4322. }
  4323. ($_tt_value, $_tt_error) = $_tt_list->get_first();
  4324. eval { $_tt_oldloop = $stash->get('loop') };
  4325. $stash->set('loop', $_tt_list);
  4326. eval {
  4327. FOR1: while (! $_tt_error) {
  4328. $stash->{'field'} = $_tt_value;
  4329. $output .= "\n <p><code>";
  4330. #line 1443 "template/en/default/global/user-error.html.tmpl"
  4331. # FILTER
  4332. $output .= do {
  4333. my $output = '';
  4334. my $_tt_filter = $context->filter('html')
  4335. || $context->throw($context->error);
  4336. $output .= $stash->get('field');
  4337. &$_tt_filter($output);
  4338. };
  4339. $output .= "</code> is not a valid field name.</p>";;
  4340. ($_tt_value, $_tt_error) = $_tt_list->get_next();
  4341. }
  4342. };
  4343. $stash->set('loop', $_tt_oldloop);
  4344. die $@ if $@;
  4345. $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;
  4346. die $_tt_error if $_tt_error;
  4347. };
  4348. #line 1448 "template/en/default/global/user-error.html.tmpl"
  4349. # FOREACH
  4350. do {
  4351. my ($_tt_value, $_tt_error, $_tt_oldloop);
  4352. my $_tt_list = $stash->get(['ambiguous', 0, 'keys', 0]);
  4353. unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {
  4354. $_tt_list = Template::Config->iterator($_tt_list)
  4355. || die $Template::Config::ERROR, "\n";
  4356. }
  4357. ($_tt_value, $_tt_error) = $_tt_list->get_first();
  4358. eval { $_tt_oldloop = $stash->get('loop') };
  4359. $stash->set('loop', $_tt_list);
  4360. eval {
  4361. FOR1: while (! $_tt_error) {
  4362. $stash->{'field'} = $_tt_value;
  4363. $output .= "\n <p><code>";
  4364. #line 1446 "template/en/default/global/user-error.html.tmpl"
  4365. # FILTER
  4366. $output .= do {
  4367. my $output = '';
  4368. my $_tt_filter = $context->filter('html')
  4369. || $context->throw($context->error);
  4370. $output .= $stash->get('field');
  4371. &$_tt_filter($output);
  4372. };
  4373. $output .= "</code> matches more than one field:\n ";
  4374. #line 1447 "template/en/default/global/user-error.html.tmpl"
  4375. # FILTER
  4376. $output .= do {
  4377. my $output = '';
  4378. my $_tt_filter = $context->filter('html')
  4379. || $context->throw($context->error);
  4380. $output .= $stash->get(['ambiguous', 0, $stash->get('field'), 0, 'join', [ ', ' ]]);
  4381. &$_tt_filter($output);
  4382. };
  4383. $output .= "</p>";;
  4384. ($_tt_value, $_tt_error) = $_tt_list->get_next();
  4385. }
  4386. };
  4387. $stash->set('loop', $_tt_oldloop);
  4388. die $@ if $@;
  4389. $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;
  4390. die $_tt_error if $_tt_error;
  4391. };
  4392. $output .= "\n";
  4393. #line 1453 "template/en/default/global/user-error.html.tmpl"
  4394. if ($stash->get(['unknown', 0, 'size', 0])) {
  4395. $output .= "\n <p>The legal field names are \n <a href=\"page.cgi?id=quicksearch.html#fields\">listed here</a>.</p>";
  4396. }
  4397. $output .= "\n";
  4398. }
  4399. elsif ($stash->get('error') eq 'reassign_to_empty') {
  4400. #line 1456 "template/en/default/global/user-error.html.tmpl"
  4401. $stash->set('title', 'Illegal Reassignment');
  4402. $output .= "\n To reassign ";
  4403. #line 1457 "template/en/default/global/user-error.html.tmpl"
  4404. $output .= $stash->get(['terms', 0, 'abug', 0]);
  4405. $output .= ", you must provide an address for\n the new assignee.\n";
  4406. }
  4407. elsif ($stash->get('error') eq 'require_component') {
  4408. #line 1461 "template/en/default/global/user-error.html.tmpl"
  4409. $stash->set('title', 'Component Needed');
  4410. $output .= "\n To file this ";
  4411. #line 1462 "template/en/default/global/user-error.html.tmpl"
  4412. $output .= $stash->get(['terms', 0, 'bug', 0]);
  4413. $output .= ", you must first choose a component.\n If necessary, just guess.\n";
  4414. }
  4415. elsif ($stash->get('error') eq 'relationship_loop_single') {
  4416. #line 1466 "template/en/default/global/user-error.html.tmpl"
  4417. $stash->set('title', 'Relationship Loop Detected');
  4418. #line 1467 "template/en/default/global/user-error.html.tmpl"
  4419. # FILTER
  4420. $output .= do {
  4421. my $output = '';
  4422. my $_tt_filter = $context->filter('html')
  4423. || $context->throw($context->error);
  4424. $output .= $stash->get(['field_descs', 0, $stash->get('field_name'), 0]);
  4425. &$_tt_filter($output);
  4426. };
  4427. $output .= "\n for ";
  4428. #line 1468 "template/en/default/global/user-error.html.tmpl"
  4429. $output .= $stash->get(['terms', 0, 'bug', 0]);
  4430. $output .= " ";
  4431. #line 1468 "template/en/default/global/user-error.html.tmpl"
  4432. # FILTER
  4433. $output .= do {
  4434. my $output = '';
  4435. my $_tt_filter = $context->filter('html')
  4436. || $context->throw($context->error);
  4437. $output .= $stash->get('bug_id');
  4438. &$_tt_filter($output);
  4439. };
  4440. $output .= "\n has a circular dependency on ";
  4441. #line 1469 "template/en/default/global/user-error.html.tmpl"
  4442. $output .= $stash->get(['terms', 0, 'bug', 0]);
  4443. $output .= " ";
  4444. #line 1469 "template/en/default/global/user-error.html.tmpl"
  4445. # FILTER
  4446. $output .= do {
  4447. my $output = '';
  4448. my $_tt_filter = $context->filter('html')
  4449. || $context->throw($context->error);
  4450. $output .= $stash->get('dep_id');
  4451. &$_tt_filter($output);
  4452. };
  4453. $output .= ".\n";
  4454. }
  4455. elsif ($stash->get('error') eq 'request_queue_group_invalid') {
  4456. $output .= "\n The group field <em>";
  4457. #line 1472 "template/en/default/global/user-error.html.tmpl"
  4458. # FILTER
  4459. $output .= do {
  4460. my $output = '';
  4461. my $_tt_filter = $context->filter('html')
  4462. || $context->throw($context->error);
  4463. $output .= $stash->get('group');
  4464. &$_tt_filter($output);
  4465. };
  4466. $output .= "</em> is invalid.\n";
  4467. }
  4468. elsif ($stash->get('error') eq 'require_new_password') {
  4469. #line 1475 "template/en/default/global/user-error.html.tmpl"
  4470. $stash->set('title', 'New Password Needed');
  4471. $output .= "\n You cannot change your password without choosing a new one.\n";
  4472. }
  4473. elsif ($stash->get('error') eq 'required_field') {
  4474. #line 1479 "template/en/default/global/user-error.html.tmpl"
  4475. $stash->set('title', 'Field Must Be Set');
  4476. $output .= "\n A value must be set for the '";
  4477. #line 1480 "template/en/default/global/user-error.html.tmpl"
  4478. # FILTER
  4479. $output .= do {
  4480. my $output = '';
  4481. my $_tt_filter = $context->filter('html')
  4482. || $context->throw($context->error);
  4483. $output .= $stash->get(['field_descs', 0, $stash->get(['field', 0, 'name', 0]), 0]);
  4484. &$_tt_filter($output);
  4485. };
  4486. $output .= "'\n field.\n";
  4487. }
  4488. elsif ($stash->get('error') eq 'require_summary') {
  4489. #line 1484 "template/en/default/global/user-error.html.tmpl"
  4490. $stash->set('title', 'Summary Needed');
  4491. $output .= "\n You must enter a summary for this ";
  4492. #line 1485 "template/en/default/global/user-error.html.tmpl"
  4493. $output .= $stash->get(['terms', 0, 'bug', 0]);
  4494. $output .= ".\n";
  4495. }
  4496. elsif ($stash->get('error') eq 'resolution_cant_clear') {
  4497. #line 1488 "template/en/default/global/user-error.html.tmpl"
  4498. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  4499. $output .= " ";
  4500. #line 1488 "template/en/default/global/user-error.html.tmpl"
  4501. # FILTER
  4502. $output .= do {
  4503. my $output = '';
  4504. my $_tt_filter = $context->filter('none')
  4505. || $context->throw($context->error);
  4506. # FILTER
  4507. $output .= do {
  4508. my $output = '';
  4509. my $_tt_filter = $context->filter('bug_link', [ $stash->get('bug_id') ])
  4510. || $context->throw($context->error);
  4511. $output .= $stash->get('bug_id');
  4512. &$_tt_filter($output);
  4513. };
  4514. &$_tt_filter($output);
  4515. };
  4516. $output .= " is \n closed, so you cannot clear its resolution.\n";
  4517. }
  4518. elsif ($stash->get('error') eq 'resolution_not_allowed') {
  4519. #line 1492 "template/en/default/global/user-error.html.tmpl"
  4520. $stash->set('title', 'Resolution Not Allowed');
  4521. $output .= "\n You cannot set a resolution for open ";
  4522. #line 1493 "template/en/default/global/user-error.html.tmpl"
  4523. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  4524. $output .= ".\n";
  4525. }
  4526. elsif ($stash->get('error') eq 'saved_search_used_by_whines') {
  4527. #line 1496 "template/en/default/global/user-error.html.tmpl"
  4528. $stash->set('title', 'Saved Search In Use');
  4529. #line 1497 "template/en/default/global/user-error.html.tmpl"
  4530. $stash->set('docslinks', { 'whining.html' => 'About Whining' });
  4531. $output .= "\n The saved search <em>";
  4532. #line 1498 "template/en/default/global/user-error.html.tmpl"
  4533. # FILTER
  4534. $output .= do {
  4535. my $output = '';
  4536. my $_tt_filter = $context->filter('html')
  4537. || $context->throw($context->error);
  4538. $output .= $stash->get('search_name');
  4539. &$_tt_filter($output);
  4540. };
  4541. $output .= "</em> is being used \n by <a href=\"editwhines.cgi\">Whining events</a> with the following subjects:\n ";
  4542. #line 1500 "template/en/default/global/user-error.html.tmpl"
  4543. # FILTER
  4544. $output .= do {
  4545. my $output = '';
  4546. my $_tt_filter = $context->filter('html')
  4547. || $context->throw($context->error);
  4548. $output .= $stash->get('subjects');
  4549. &$_tt_filter($output);
  4550. };
  4551. $output .= "\n";
  4552. }
  4553. elsif ($stash->get('error') eq 'search_content_without_matches') {
  4554. #line 1503 "template/en/default/global/user-error.html.tmpl"
  4555. $stash->set('title', 'Illegal Search');
  4556. $output .= "\n The \"content\" field can only be used with \"matches\" search \n and the \"matches\" search can only be used with the \"content\"\n field.\n";
  4557. }
  4558. elsif ($stash->get('error') eq 'series_already_exists') {
  4559. #line 1509 "template/en/default/global/user-error.html.tmpl"
  4560. $stash->set('title', 'Series Already Exists');
  4561. #line 1510 "template/en/default/global/user-error.html.tmpl"
  4562. $stash->set('docslinks', { 'reporting.html' => 'Reporting' });
  4563. $output .= "\n A series named <em>";
  4564. #line 1511 "template/en/default/global/user-error.html.tmpl"
  4565. # FILTER
  4566. $output .= do {
  4567. my $output = '';
  4568. my $_tt_filter = $context->filter('html')
  4569. || $context->throw($context->error);
  4570. $output .= $stash->get(['series', 0, 'category', 0]);
  4571. &$_tt_filter($output);
  4572. };
  4573. $output .= " /\n ";
  4574. #line 1512 "template/en/default/global/user-error.html.tmpl"
  4575. # FILTER
  4576. $output .= do {
  4577. my $output = '';
  4578. my $_tt_filter = $context->filter('html')
  4579. || $context->throw($context->error);
  4580. $output .= $stash->get(['series', 0, 'subcategory', 0]);
  4581. &$_tt_filter($output);
  4582. };
  4583. $output .= " / \n ";
  4584. #line 1513 "template/en/default/global/user-error.html.tmpl"
  4585. # FILTER
  4586. $output .= do {
  4587. my $output = '';
  4588. my $_tt_filter = $context->filter('html')
  4589. || $context->throw($context->error);
  4590. $output .= $stash->get(['series', 0, 'name', 0]);
  4591. &$_tt_filter($output);
  4592. };
  4593. $output .= "</em>\n already exists.\n ";
  4594. }
  4595. elsif ($stash->get('error') eq 'sidebar_supports_mozilla_only') {
  4596. $output .= "\n Sorry - sidebar.cgi currently only supports Mozilla based web browsers.\n <a href=\"http://www.mozilla.org\">Upgrade today</a>. :-)\n";
  4597. }
  4598. elsif ($stash->get('error') eq 'still_unresolved_bugs') {
  4599. #line 1521 "template/en/default/global/user-error.html.tmpl"
  4600. $stash->set('title', 'Unresolved Dependencies');
  4601. #line 1522 "template/en/default/global/user-error.html.tmpl"
  4602. $output .= $stash->get(['terms', 0, 'Bug', 0]);
  4603. $output .= " ";
  4604. #line 1522 "template/en/default/global/user-error.html.tmpl"
  4605. # FILTER
  4606. $output .= do {
  4607. my $output = '';
  4608. my $_tt_filter = $context->filter('none')
  4609. || $context->throw($context->error);
  4610. # FILTER
  4611. $output .= do {
  4612. my $output = '';
  4613. my $_tt_filter = $context->filter('bug_link', [ $stash->get('bug_id') ])
  4614. || $context->throw($context->error);
  4615. $output .= $stash->get('bug_id');
  4616. &$_tt_filter($output);
  4617. };
  4618. &$_tt_filter($output);
  4619. };
  4620. $output .= "\n has ";
  4621. #line 1523 "template/en/default/global/user-error.html.tmpl"
  4622. # FILTER
  4623. $output .= do {
  4624. my $output = '';
  4625. my $_tt_filter = $context->filter('none')
  4626. || $context->throw($context->error);
  4627. $output .= $stash->get('dep_count');
  4628. &$_tt_filter($output);
  4629. };
  4630. $output .= " unresolved";
  4631. #line 1528 "template/en/default/global/user-error.html.tmpl"
  4632. if ($stash->get('dep_count') eq 1) {
  4633. $output .= "\n dependency";
  4634. }
  4635. else {
  4636. $output .= "\n dependencies";
  4637. }
  4638. $output .= ".\n They must either be resolved or removed from the\n \"";
  4639. #line 1530 "template/en/default/global/user-error.html.tmpl"
  4640. # FILTER
  4641. $output .= do {
  4642. my $output = '';
  4643. my $_tt_filter = $context->filter('html')
  4644. || $context->throw($context->error);
  4645. $output .= $stash->get(['field_descs', 0, 'dependson', 0]);
  4646. &$_tt_filter($output);
  4647. };
  4648. $output .= "\" field before you can resolve\n this ";
  4649. #line 1531 "template/en/default/global/user-error.html.tmpl"
  4650. $output .= $stash->get(['terms', 0, 'bug', 0]);
  4651. $output .= " as ";
  4652. #line 1531 "template/en/default/global/user-error.html.tmpl"
  4653. # FILTER
  4654. $output .= do {
  4655. my $output = '';
  4656. my $_tt_filter = $context->filter('html')
  4657. || $context->throw($context->error);
  4658. $output .= $stash->get(['display_value', [ 'resolution', 'FIXED' ]]);
  4659. &$_tt_filter($output);
  4660. };
  4661. $output .= ".\n";
  4662. }
  4663. elsif ($stash->get('error') eq 'sudo_invalid_cookie') {
  4664. #line 1534 "template/en/default/global/user-error.html.tmpl"
  4665. $stash->set('title', 'Invalid Sudo Cookie');
  4666. $output .= "\n Your sudo cookie is invalid. Either it expired or you didn't start\n a sudo session correctly. Refresh the page or load another page\n to continue what you are doing as yourself.\n";
  4667. }
  4668. elsif ($stash->get('error') eq 'sudo_illegal_action') {
  4669. #line 1540 "template/en/default/global/user-error.html.tmpl"
  4670. $stash->set('title', 'Impersonation Not Authorized');
  4671. #line 1547 "template/en/default/global/user-error.html.tmpl"
  4672. if (! $stash->get(['sudoer', 0, 'in_group', [ 'bz_sudoers' ]])) {
  4673. $output .= "\n You are not allowed to impersonate users.";
  4674. }
  4675. elsif ($stash->get('target_user') && $stash->get(['target_user', 0, 'in_group', [ 'bz_sudo_protect' ]])) {
  4676. $output .= "\n You are not allowed to impersonate ";
  4677. #line 1544 "template/en/default/global/user-error.html.tmpl"
  4678. # FILTER
  4679. $output .= do {
  4680. my $output = '';
  4681. my $_tt_filter = $context->filter('html')
  4682. || $context->throw($context->error);
  4683. $output .= $stash->get(['target_user', 0, 'identity', 0]);
  4684. &$_tt_filter($output);
  4685. };
  4686. $output .= ".";
  4687. }
  4688. else {
  4689. $output .= "\n The user you tried to impersonate doesn't exist.";
  4690. }
  4691. $output .= "\n";
  4692. }
  4693. elsif ($stash->get('error') eq 'sudo_in_progress') {
  4694. #line 1550 "template/en/default/global/user-error.html.tmpl"
  4695. $stash->set('title', 'Session In Progress');
  4696. $output .= "\n A sudo session (impersonating ";
  4697. #line 1551 "template/en/default/global/user-error.html.tmpl"
  4698. # FILTER
  4699. $output .= do {
  4700. my $output = '';
  4701. my $_tt_filter = $context->filter('html')
  4702. || $context->throw($context->error);
  4703. $output .= $stash->get('target');
  4704. &$_tt_filter($output);
  4705. };
  4706. $output .= ") is in progress. \n End that session (using the link in the footer) before starting a new one.\n";
  4707. }
  4708. elsif ($stash->get('error') eq 'sudo_password_required') {
  4709. #line 1555 "template/en/default/global/user-error.html.tmpl"
  4710. $stash->set('title', 'Password Required');
  4711. $output .= "\n Your ";
  4712. #line 1556 "template/en/default/global/user-error.html.tmpl"
  4713. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  4714. $output .= " password is required to begin a sudo \n session. Please <a href=\"relogin.cgi?action=prepare-sudo&target_login=";
  4715. #line 1558 "template/en/default/global/user-error.html.tmpl"
  4716. # FILTER
  4717. $output .= do {
  4718. my $output = '';
  4719. my $_tt_filter = $context->filter('html')
  4720. || $context->throw($context->error);
  4721. $output .= $stash->get('target_login');
  4722. &$_tt_filter($output);
  4723. };
  4724. $output .= "&reason=";
  4725. #line 1559 "template/en/default/global/user-error.html.tmpl"
  4726. # FILTER
  4727. $output .= do {
  4728. my $output = '';
  4729. my $_tt_filter = $context->filter('html')
  4730. || $context->throw($context->error);
  4731. $output .= $stash->get('reason');
  4732. &$_tt_filter($output);
  4733. };
  4734. $output .= "\">go back</a> and enter your password.\n ";
  4735. }
  4736. elsif ($stash->get('error') eq 'sudo_preparation_required') {
  4737. #line 1562 "template/en/default/global/user-error.html.tmpl"
  4738. $stash->set('title', 'Preparation Required');
  4739. $output .= "\n You may not start a sudo session directly. Please\n <a href=\"relogin.cgi?action=prepare-sudo&target_login=";
  4740. #line 1565 "template/en/default/global/user-error.html.tmpl"
  4741. # FILTER
  4742. $output .= do {
  4743. my $output = '';
  4744. my $_tt_filter = $context->filter('html')
  4745. || $context->throw($context->error);
  4746. $output .= $stash->get('target_login');
  4747. &$_tt_filter($output);
  4748. };
  4749. $output .= "&reason=";
  4750. #line 1566 "template/en/default/global/user-error.html.tmpl"
  4751. # FILTER
  4752. $output .= do {
  4753. my $output = '';
  4754. my $_tt_filter = $context->filter('html')
  4755. || $context->throw($context->error);
  4756. $output .= $stash->get('reason');
  4757. &$_tt_filter($output);
  4758. };
  4759. $output .= "\">start your session normally</a>.\n";
  4760. }
  4761. elsif ($stash->get('error') eq 'sudo_protected') {
  4762. #line 1569 "template/en/default/global/user-error.html.tmpl"
  4763. $stash->set('title', 'User Protected');
  4764. $output .= "\n The user ";
  4765. #line 1570 "template/en/default/global/user-error.html.tmpl"
  4766. # FILTER
  4767. $output .= do {
  4768. my $output = '';
  4769. my $_tt_filter = $context->filter('html')
  4770. || $context->throw($context->error);
  4771. $output .= $stash->get('login');
  4772. &$_tt_filter($output);
  4773. };
  4774. $output .= " may not be impersonated by sudoers.\n";
  4775. }
  4776. elsif ($stash->get('error') eq 'token_does_not_exist') {
  4777. #line 1573 "template/en/default/global/user-error.html.tmpl"
  4778. $stash->set('title', 'Token Does Not Exist');
  4779. $output .= "\n The token you submitted does not exist, has expired, or has\n been canceled.\n";
  4780. }
  4781. elsif ($stash->get('error') eq 'too_soon_for_new_token') {
  4782. #line 1578 "template/en/default/global/user-error.html.tmpl"
  4783. $stash->set('title', 'Too Soon For New Token');
  4784. $output .= "\n You have requested";
  4785. #line 1584 "template/en/default/global/user-error.html.tmpl"
  4786. if ($stash->get('type') eq 'password') {
  4787. $output .= "\n a password";
  4788. }
  4789. elsif ($stash->get('type') eq 'account') {
  4790. $output .= "\n an account";
  4791. }
  4792. $output .= "\n token too recently to request another. Please wait a while and try again.\n";
  4793. }
  4794. elsif ($stash->get('error') eq 'unknown_action') {
  4795. #line 1592 "template/en/default/global/user-error.html.tmpl"
  4796. if ($stash->get('action')) {
  4797. $output .= "\n Unknown action ";
  4798. #line 1589 "template/en/default/global/user-error.html.tmpl"
  4799. # FILTER
  4800. $output .= do {
  4801. my $output = '';
  4802. my $_tt_filter = $context->filter('html')
  4803. || $context->throw($context->error);
  4804. $output .= $stash->get('action');
  4805. &$_tt_filter($output);
  4806. };
  4807. $output .= "!";
  4808. }
  4809. else {
  4810. $output .= "\n I could not figure out what you wanted to do.";
  4811. }
  4812. $output .= "\n";
  4813. }
  4814. elsif ($stash->get('error') eq 'unknown_tab') {
  4815. #line 1595 "template/en/default/global/user-error.html.tmpl"
  4816. $stash->set('title', 'Unknown Tab');
  4817. $output .= "\n <code>";
  4818. #line 1596 "template/en/default/global/user-error.html.tmpl"
  4819. # FILTER
  4820. $output .= do {
  4821. my $output = '';
  4822. my $_tt_filter = $context->filter('html')
  4823. || $context->throw($context->error);
  4824. $output .= $stash->get('current_tab_name');
  4825. &$_tt_filter($output);
  4826. };
  4827. $output .= "</code> is not a legal tab name.\n";
  4828. }
  4829. elsif ($stash->get('error') eq 'version_already_exists') {
  4830. #line 1599 "template/en/default/global/user-error.html.tmpl"
  4831. $stash->set('title', 'Version Already Exists');
  4832. #line 1600 "template/en/default/global/user-error.html.tmpl"
  4833. $stash->set('admindocslinks', { 'versions.html' => 'Administering versions' });
  4834. $output .= "\n The version '";
  4835. #line 1601 "template/en/default/global/user-error.html.tmpl"
  4836. # FILTER
  4837. $output .= do {
  4838. my $output = '';
  4839. my $_tt_filter = $context->filter('html')
  4840. || $context->throw($context->error);
  4841. $output .= $stash->get('name');
  4842. &$_tt_filter($output);
  4843. };
  4844. $output .= "' already exists for product '";
  4845. #line 1602 "template/en/default/global/user-error.html.tmpl"
  4846. # FILTER
  4847. $output .= do {
  4848. my $output = '';
  4849. my $_tt_filter = $context->filter('html')
  4850. || $context->throw($context->error);
  4851. $output .= $stash->get('product');
  4852. &$_tt_filter($output);
  4853. };
  4854. $output .= "'.\n";
  4855. }
  4856. elsif ($stash->get('error') eq 'version_blank_name') {
  4857. #line 1605 "template/en/default/global/user-error.html.tmpl"
  4858. $stash->set('title', 'Blank Version Name Not Allowed');
  4859. $output .= "\n You must enter a name for this version.\n";
  4860. }
  4861. elsif ($stash->get('error') eq 'version_has_bugs') {
  4862. #line 1609 "template/en/default/global/user-error.html.tmpl"
  4863. # CAPTURE
  4864. $stash->set('title', do {
  4865. my $output = '';
  4866. $output .= "Version has ";
  4867. #line 1609 "template/en/default/global/user-error.html.tmpl"
  4868. $output .= $stash->get(['terms', 0, 'Bugs', 0]);
  4869. $output;
  4870. });
  4871. $output .= "\n There are ";
  4872. #line 1610 "template/en/default/global/user-error.html.tmpl"
  4873. # FILTER
  4874. $output .= do {
  4875. my $output = '';
  4876. my $_tt_filter = $context->filter('html')
  4877. || $context->throw($context->error);
  4878. $output .= $stash->get('nb');
  4879. &$_tt_filter($output);
  4880. };
  4881. $output .= " ";
  4882. #line 1610 "template/en/default/global/user-error.html.tmpl"
  4883. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  4884. $output .= " associated with this\n version! You must reassign those ";
  4885. #line 1611 "template/en/default/global/user-error.html.tmpl"
  4886. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  4887. $output .= " to another version\n before you can delete this one.\n";
  4888. }
  4889. elsif ($stash->get('error') eq 'users_deletion_disabled') {
  4890. #line 1615 "template/en/default/global/user-error.html.tmpl"
  4891. $stash->set('title', 'Deletion not activated');
  4892. #line 1616 "template/en/default/global/user-error.html.tmpl"
  4893. $stash->set('admindocslinks', { 'useradmin.html' => 'User administration' });
  4894. $output .= "\n Sorry, the deletion of user accounts is not allowed.\n";
  4895. }
  4896. elsif ($stash->get('error') eq 'user_has_responsibility') {
  4897. #line 1620 "template/en/default/global/user-error.html.tmpl"
  4898. $stash->set('title', 'Can\'t Delete User Account');
  4899. #line 1621 "template/en/default/global/user-error.html.tmpl"
  4900. $stash->set('admindocslinks', { 'useradmin.html' => 'User administration' });
  4901. $output .= "\n The user you want to delete is set up as the default ";
  4902. #line 1622 "template/en/default/global/user-error.html.tmpl"
  4903. $output .= $stash->get(['terms', 0, 'bug', 0]);
  4904. $output .= "\n assignee";
  4905. #line 1626 "template/en/default/global/user-error.html.tmpl"
  4906. if ($stash->get(['Param', [ 'useqacontact' ]])) {
  4907. $output .= "\n or QA contact";
  4908. }
  4909. $output .= "\n for at least one component.\n For this reason, you cannot delete the account at this time.\n";
  4910. }
  4911. elsif ($stash->get('error') eq 'user_access_by_id_denied') {
  4912. #line 1631 "template/en/default/global/user-error.html.tmpl"
  4913. $stash->set('title', 'User Access By Id Denied');
  4914. $output .= "\n Logged-out users cannot use the \"ids\" argument to this function\n to access any user information.\n";
  4915. }
  4916. elsif ($stash->get('error') eq 'user_access_by_match_denied') {
  4917. #line 1636 "template/en/default/global/user-error.html.tmpl"
  4918. $stash->set('title', 'User-Matching Denied');
  4919. $output .= "\n Logged-out users cannot use the \"match\" argument to this function\n to access any user information.\n";
  4920. }
  4921. elsif ($stash->get('error') eq 'user_login_required') {
  4922. #line 1641 "template/en/default/global/user-error.html.tmpl"
  4923. $stash->set('title', 'Login Name Required');
  4924. #line 1642 "template/en/default/global/user-error.html.tmpl"
  4925. $stash->set('admindocslinks', { 'useradmin.html' => 'User administration' });
  4926. $output .= "\n You must enter a login name for the new user.\n";
  4927. }
  4928. elsif ($stash->get('error') eq 'user_match_failed') {
  4929. #line 1646 "template/en/default/global/user-error.html.tmpl"
  4930. $stash->set('title', 'Match Failed');
  4931. $output .= "\n <tt>";
  4932. #line 1647 "template/en/default/global/user-error.html.tmpl"
  4933. # FILTER
  4934. $output .= do {
  4935. my $output = '';
  4936. my $_tt_filter = $context->filter('html')
  4937. || $context->throw($context->error);
  4938. $output .= $stash->get('name');
  4939. &$_tt_filter($output);
  4940. };
  4941. $output .= "</tt> does not exist or you are not allowed \n to see that user.\n";
  4942. }
  4943. elsif ($stash->get('error') eq 'user_match_too_many') {
  4944. #line 1651 "template/en/default/global/user-error.html.tmpl"
  4945. $stash->set('title', 'No Conclusive Match');
  4946. #line 1652 "template/en/default/global/user-error.html.tmpl"
  4947. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  4948. $output .= " cannot make a conclusive match for one or more\n of the names and/or email addresses you entered for\n the ";
  4949. #line 1654 "template/en/default/global/user-error.html.tmpl"
  4950. # FILTER
  4951. $output .= do {
  4952. my $output = '';
  4953. my $_tt_filter = $context->filter('html')
  4954. || $context->throw($context->error);
  4955. $output .= $stash->get(['fields', 0, 'join', [ ', ' ]]);
  4956. &$_tt_filter($output);
  4957. };
  4958. $output .= " field(s).\n";
  4959. }
  4960. elsif ($stash->get('error') eq 'user_not_insider') {
  4961. #line 1657 "template/en/default/global/user-error.html.tmpl"
  4962. $stash->set('title', 'User Not In Insidergroup');
  4963. $output .= "\n Sorry, but you are not allowed to (un)mark comments or attachments\n as private.\n";
  4964. }
  4965. elsif ($stash->get('error') eq 'wrong_token_for_cancelling_email_change') {
  4966. #line 1662 "template/en/default/global/user-error.html.tmpl"
  4967. $stash->set('title', 'Wrong Token');
  4968. $output .= "\n That token cannot be used to cancel an email address change.\n";
  4969. }
  4970. elsif ($stash->get('error') eq 'wrong_token_for_changing_passwd') {
  4971. #line 1666 "template/en/default/global/user-error.html.tmpl"
  4972. $stash->set('title', 'Wrong Token');
  4973. $output .= "\n That token cannot be used to change your password.\n";
  4974. }
  4975. elsif ($stash->get('error') eq 'wrong_token_for_confirming_email_change') {
  4976. #line 1670 "template/en/default/global/user-error.html.tmpl"
  4977. $stash->set('title', 'Wrong Token');
  4978. $output .= "\n That token cannot be used to change your email address.\n";
  4979. }
  4980. elsif ($stash->get('error') eq 'wrong_token_for_creating_account') {
  4981. #line 1674 "template/en/default/global/user-error.html.tmpl"
  4982. $stash->set('title', 'Wrong Token');
  4983. $output .= "\n That token cannot be used to create a user account.\n";
  4984. }
  4985. elsif ($stash->get('error') eq 'xmlrpc_invalid_value') {
  4986. $output .= "\n \"";
  4987. #line 1678 "template/en/default/global/user-error.html.tmpl"
  4988. # FILTER
  4989. $output .= do {
  4990. my $output = '';
  4991. my $_tt_filter = $context->filter('html')
  4992. || $context->throw($context->error);
  4993. $output .= $stash->get('value');
  4994. &$_tt_filter($output);
  4995. };
  4996. $output .= "\" is not a valid value for a\n &lt;";
  4997. #line 1679 "template/en/default/global/user-error.html.tmpl"
  4998. # FILTER
  4999. $output .= do {
  5000. my $output = '';
  5001. my $_tt_filter = $context->filter('html')
  5002. || $context->throw($context->error);
  5003. $output .= $stash->get('type');
  5004. &$_tt_filter($output);
  5005. };
  5006. $output .= "&gt; field. (See the XML-RPC specification\n for details.)\n";
  5007. }
  5008. elsif ($stash->get('error') eq 'zero_length_file') {
  5009. #line 1683 "template/en/default/global/user-error.html.tmpl"
  5010. $stash->set('title', 'File Is Empty');
  5011. $output .= "\n The file you are trying to attach is empty, does not exist, or you don't\n have permission to read it.\n";
  5012. }
  5013. elsif ($stash->get('error') eq 'illegal_user_id') {
  5014. #line 1688 "template/en/default/global/user-error.html.tmpl"
  5015. $stash->set('title', 'Illegal User ID');
  5016. $output .= "\n User ID '";
  5017. #line 1689 "template/en/default/global/user-error.html.tmpl"
  5018. # FILTER
  5019. $output .= do {
  5020. my $output = '';
  5021. my $_tt_filter = $context->filter('html')
  5022. || $context->throw($context->error);
  5023. $output .= $stash->get('userid');
  5024. &$_tt_filter($output);
  5025. };
  5026. $output .= "' is not valid integer.\n";
  5027. }
  5028. else {
  5029. $output .= "\n\n ";
  5030. #line 1694 "template/en/default/global/user-error.html.tmpl"
  5031. $stash->set('error_message', $stash->get(['Hook', 0, 'process', [ 'errors' ]]));
  5032. $output .= "\n";
  5033. #line 1703 "template/en/default/global/user-error.html.tmpl"
  5034. if (! $stash->get('error_message')) {
  5035. #line 1697 "template/en/default/global/user-error.html.tmpl"
  5036. $stash->set('title', 'Error string not found');
  5037. $output .= "\n The user error string <code>";
  5038. #line 1698 "template/en/default/global/user-error.html.tmpl"
  5039. # FILTER
  5040. $output .= do {
  5041. my $output = '';
  5042. my $_tt_filter = $context->filter('html')
  5043. || $context->throw($context->error);
  5044. $output .= $stash->get('error');
  5045. &$_tt_filter($output);
  5046. };
  5047. $output .= "</code> was not found.\n Please send email to ";
  5048. #line 1699 "template/en/default/global/user-error.html.tmpl"
  5049. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  5050. $output .= " describing the steps taken\n to obtain this message.";
  5051. }
  5052. else {
  5053. #line 1702 "template/en/default/global/user-error.html.tmpl"
  5054. # FILTER
  5055. $output .= do {
  5056. my $output = '';
  5057. my $_tt_filter = $context->filter('none')
  5058. || $context->throw($context->error);
  5059. $output .= $stash->get('error_message');
  5060. &$_tt_filter($output);
  5061. };
  5062. }
  5063. }
  5064. $output;
  5065. });
  5066. $output .= "\n\n";
  5067. #line 1708 "template/en/default/global/user-error.html.tmpl"
  5068. # USE
  5069. $stash->set('Bugzilla',
  5070. $context->plugin('Bugzilla'));
  5071. #line 1716 "template/en/default/global/user-error.html.tmpl"
  5072. if ($stash->get(['Bugzilla', 0, 'error_mode', 0]) ne '0') {
  5073. #line 1714 "template/en/default/global/user-error.html.tmpl"
  5074. if ($stash->get(['Bugzilla', 0, 'usage_mode', 0]) eq '0') {
  5075. #line 1711 "template/en/default/global/user-error.html.tmpl"
  5076. # FILTER
  5077. $output .= do {
  5078. my $output = '';
  5079. my $_tt_filter = $context->filter('none')
  5080. || $context->throw($context->error);
  5081. $output .= $stash->get('error_message');
  5082. &$_tt_filter($output);
  5083. };
  5084. }
  5085. else {
  5086. #line 1713 "template/en/default/global/user-error.html.tmpl"
  5087. # FILTER
  5088. $output .= do {
  5089. my $output = '';
  5090. my $_tt_filter = $context->filter('txt')
  5091. || $context->throw($context->error);
  5092. $output .= $stash->get('error_message');
  5093. &$_tt_filter($output);
  5094. };
  5095. }
  5096. #line 1715 "template/en/default/global/user-error.html.tmpl"
  5097. $context->throw('return', '', \$output);
  5098. }
  5099. $output .= "\n";
  5100. #line 1720 "template/en/default/global/user-error.html.tmpl"
  5101. if (!($stash->get('header_done'))) {
  5102. #line 1719 "template/en/default/global/user-error.html.tmpl"
  5103. $output .= $context->process('global/header.html.tmpl');
  5104. }
  5105. $output .= "\n";
  5106. #line 1722 "template/en/default/global/user-error.html.tmpl"
  5107. $output .= $context->process('global/docslinks.html.tmpl', { 'docslinks' => $stash->get('docslinks'), 'admindocslinks' => $stash->get('admindocslinks') });
  5108. $output .= "\n\n<table cellpadding=\"20\">\n <tr>\n <td id=\"error_msg\" class=\"throw_error\">";
  5109. #line 1730 "template/en/default/global/user-error.html.tmpl"
  5110. # FILTER
  5111. $output .= do {
  5112. my $output = '';
  5113. my $_tt_filter = $context->filter('none')
  5114. || $context->throw($context->error);
  5115. $output .= $stash->get('error_message');
  5116. &$_tt_filter($output);
  5117. };
  5118. $output .= "\n </td>\n </tr>\n</table>\n\n<p>\n Please press <b>Back</b> and try again.\n</p>\n\n";
  5119. $output .= "\n";
  5120. #line 1743 "template/en/default/global/user-error.html.tmpl"
  5121. $stash->set('namedcmd', $stash->get(['Bugzilla', 0, 'cgi', 0, 'param', [ 'namedcmd' ]]));
  5122. #line 1744 "template/en/default/global/user-error.html.tmpl"
  5123. $stash->set('sharer_id', $stash->get(['Bugzilla', 0, 'cgi', 0, 'param', [ 'sharer_id' ]]));
  5124. #line 1761 "template/en/default/global/user-error.html.tmpl"
  5125. if ($stash->get('namedcmd') && $stash->get('error') ne 'missing_query' && $stash->get('error') ne 'saved_search_used_by_whines' && ! $stash->get('sharer_id')) {
  5126. $output .= "\n <p> \n Alternatively, you can \n <a href=\"buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=";
  5127. #line 1751 "template/en/default/global/user-error.html.tmpl"
  5128. # FILTER
  5129. $output .= do {
  5130. my $output = '';
  5131. my $_tt_filter = $context->filter('url_quote')
  5132. || $context->throw($context->error);
  5133. $output .= $stash->get('namedcmd');
  5134. &$_tt_filter($output);
  5135. };
  5136. $output .= "\">forget</a>\n ";
  5137. #line 1757 "template/en/default/global/user-error.html.tmpl"
  5138. # FOREACH
  5139. do {
  5140. my ($_tt_value, $_tt_error, $_tt_oldloop);
  5141. my $_tt_list = $stash->get(['Bugzilla', 0, 'user', 0, 'queries', 0]);
  5142. unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {
  5143. $_tt_list = Template::Config->iterator($_tt_list)
  5144. || die $Template::Config::ERROR, "\n";
  5145. }
  5146. ($_tt_value, $_tt_error) = $_tt_list->get_first();
  5147. eval { $_tt_oldloop = $stash->get('loop') };
  5148. $stash->set('loop', $_tt_list);
  5149. eval {
  5150. FOR1: while (! $_tt_error) {
  5151. $stash->{'q'} = $_tt_value;
  5152. #line 1756 "template/en/default/global/user-error.html.tmpl"
  5153. if ($stash->get(['q', 0, 'name', 0]) eq $stash->get('namedcmd')) {
  5154. $output .= "\n or <a href=\"query.cgi?";
  5155. #line 1755 "template/en/default/global/user-error.html.tmpl"
  5156. # FILTER
  5157. $output .= do {
  5158. my $output = '';
  5159. my $_tt_filter = $context->filter('html')
  5160. || $context->throw($context->error);
  5161. $output .= $stash->get(['q', 0, 'url', 0]);
  5162. &$_tt_filter($output);
  5163. };
  5164. $output .= "\">edit</a>";
  5165. }
  5166. ;
  5167. ($_tt_value, $_tt_error) = $_tt_list->get_next();
  5168. }
  5169. };
  5170. $stash->set('loop', $_tt_oldloop);
  5171. die $@ if $@;
  5172. $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;
  5173. die $_tt_error if $_tt_error;
  5174. };
  5175. $output .= "\n \n the saved search '";
  5176. #line 1759 "template/en/default/global/user-error.html.tmpl"
  5177. # FILTER
  5178. $output .= do {
  5179. my $output = '';
  5180. my $_tt_filter = $context->filter('html')
  5181. || $context->throw($context->error);
  5182. $output .= $stash->get('namedcmd');
  5183. &$_tt_filter($output);
  5184. };
  5185. $output .= "'.\n </p>";
  5186. }
  5187. $output .= " \n";
  5188. #line 1763 "template/en/default/global/user-error.html.tmpl"
  5189. $output .= $context->process('global/footer.html.tmpl');
  5190. $output .= "\n";
  5191. $output .= "\n";
  5192. } };
  5193. if ($@) {
  5194. $_tt_error = $context->catch($@, \$output);
  5195. die $_tt_error unless $_tt_error->type eq 'return';
  5196. }
  5197. return $output;
  5198. },
  5199. DEFBLOCKS => {
  5200. 'object_name' => sub {
  5201. my $context = shift || die "template sub called without context\n";
  5202. my $stash = $context->stash;
  5203. my $output = '';
  5204. my $_tt_error;
  5205. eval { BLOCK: {
  5206. #line 1797 "template/en/default/global/user-error.html.tmpl"
  5207. if ($stash->get('class') eq 'Bugzilla::Attachment') {
  5208. $output .= "\n attachment";
  5209. }
  5210. elsif ($stash->get('class') eq 'Bugzilla::User') {
  5211. $output .= "\n user";
  5212. }
  5213. elsif ($stash->get('class') eq 'Bugzilla::Component') {
  5214. $output .= "\n component";
  5215. }
  5216. elsif ($stash->get('class') eq 'Bugzilla::Version') {
  5217. $output .= "\n version";
  5218. }
  5219. elsif ($stash->get('class') eq 'Bugzilla::Milestone') {
  5220. $output .= "\n milestone";
  5221. }
  5222. elsif ($stash->get('class') eq 'Bugzilla::Status') {
  5223. $output .= "\n status";
  5224. }
  5225. elsif ($stash->get('class') eq 'Bugzilla::Flag') {
  5226. $output .= "\n flag";
  5227. }
  5228. elsif ($stash->get('class') eq 'Bugzilla::FlagType') {
  5229. $output .= "\n flagtype";
  5230. }
  5231. elsif ($stash->get('class') eq 'Bugzilla::Field') {
  5232. $output .= "\n field";
  5233. }
  5234. elsif ($stash->get('class') eq 'Bugzilla::Group') {
  5235. $output .= "\n group";
  5236. }
  5237. elsif ($stash->get('class') eq 'Bugzilla::Keyword') {
  5238. $output .= "\n keyword";
  5239. }
  5240. elsif ($stash->get('class') eq 'Bugzilla::Product') {
  5241. $output .= "\n product";
  5242. }
  5243. elsif ($stash->get('class') eq 'Bugzilla::Search::Recent') {
  5244. $output .= "\n recent search";
  5245. }
  5246. elsif ($stash->get('class') eq 'Bugzilla::Search::Saved') {
  5247. $output .= "\n saved search";
  5248. }
  5249. elsif ($stash->set('matches', $stash->get(['class', 0, 'match', [ '^Bugzilla::Field::Choice::(.+)' ]]))) {
  5250. #line 1795 "template/en/default/global/user-error.html.tmpl"
  5251. $stash->set('field_name', $stash->get(['matches', 0, 0, 0]));
  5252. #line 1796 "template/en/default/global/user-error.html.tmpl"
  5253. # FILTER
  5254. $output .= do {
  5255. my $output = '';
  5256. my $_tt_filter = $context->filter('html')
  5257. || $context->throw($context->error);
  5258. $output .= $stash->get(['field_descs', 0, $stash->get('field_name'), 0]);
  5259. &$_tt_filter($output);
  5260. };
  5261. }
  5262. } };
  5263. if ($@) {
  5264. $_tt_error = $context->catch($@, \$output);
  5265. die $_tt_error unless $_tt_error->type eq 'return';
  5266. }
  5267. return $output;
  5268. },
  5269. },
  5270. });