Dotclear

Ticket #1395 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Attribut with_category inopérant dans {{tpl:EntryFirstImage}}

Reported by: philippe Owned by: xave
Priority: normal Milestone: 2.5.1
Component: module:core Version: 2.5
Severity: normal Keywords:
Cc:

Description

Suite à cette  discussion sur le forum, je peux reproduire le problème en appelant, sur home.html, un billet qui n'a pas d'image mais dont la catégorie en a une dans sa description

<tpl:Entries url="test">
{{tpl:EntryFirstImage with_category="1"}}
</tpl:Entries>

L'image n'est pas trouvée.

Avec le patch proposé en #5 par Da Bourz dans la discussion, ça marche mieux ;)

Change History

comment:1 Changed 12 years ago by franck

  • Milestone changed from A definir to 2.5.1

comment:2 Changed 12 years ago by franck <carnet.franck.paul@…>

  • Status changed from new to closed
  • Resolution set to fixed

(In [3f1b99d0153e]) with_category attribute was buggy in tpl:EntryFirstImage, fixes #1395 (thank's DaBourz? for the patch)

comment:3 Changed 12 years ago by MathieuM

L'attribut cat_only semble avoir le même bug :(

Le patch proposé corrige t-il cela ?

comment:4 Changed 12 years ago by franck

Y'a des chances que le patch corrige les deux problèmes, en effet.

Note: See TracTickets for help on using tickets.

Sites map