Parcourir la source

search results ascending

version-14
Rushabh Mehta il y a 13 ans
Parent
révision
d4f2c5c451
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      py/webnotes/widgets/search.py

+ 1
- 1
py/webnotes/widgets/search.py Voir le fichier

@@ -53,7 +53,7 @@ def make_query(fields, dt, key, txt, start, length):
FROM `tab%(dt)s`
WHERE `tab%(dt)s`.`%(key)s` LIKE '%(txt)s' AND `tab%(dt)s`.docstatus != 2
ORDER BY `tab%(dt)s`.`%(key)s`
DESC LIMIT %(start)s, %(len)s """ % {
ASC LIMIT %(start)s, %(len)s """ % {
'fields': fields,
'dt': dt,
'key': key,


Chargement…
Annuler
Enregistrer