Dotclear

Ticket #922 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Bug on last posts module

Reported by: hadrien Owned by: team
Priority: normal Milestone: 2.2
Component: module:plugins Version: 2.1
Severity: normal Keywords:
Cc:

Description

line 297

				$params['sql'] = ' AND p.cat_id IS NULL ';

would be

				$params['sql'] = ' AND P.cat_id IS NULL ';

Change History

comment:1 Changed 15 years ago by hadrien

in plugins/widgets/_widgets_functions.php file, sorry…

comment:2 Changed 15 years ago by JcDenis

Je ne sais pas pour MySQL mais PostGreSQL passe les alias de table en minuscule...
Donc pas d'erreur puisque P.cat_id = p.cat_id

comment:3 Changed 15 years ago by hadrien

Mais ce n'est pas le cas avec MySQL. De toute façon, on a une majuscule dans la requête de la méthode blog::getPosts, donc ne pas respecter la casse partout ne peux qu'emmener des problèmes.

class.dc.blog.php l.669

	$strReq .=
	'FROM '.$this->prefix.'post P '.

comment:4 Changed 15 years ago by bruno

(In [2979]) Fixed SQL typo syntax in "last posts" widget, see #922

comment:5 Changed 15 years ago by xave

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

(In [2984]) Merging changes from the Bazar branch. Closes #503, #555, #590, #696, #696, #779, #781, #791, #863, #876, #908, #922, #929, #939, #941, #942. Thanks to DSLS & Tomtom33

Note: See TracTickets for help on using tickets.

Sites map