jyby / repositorium

Document bootstrapping database with collective quality control
4 stars 5 forks source link

NO CRITERIA = NO DOCUMENT #5

Open jyby opened 12 years ago

jyby commented 12 years ago
 - When there is no criteria, yet some documents in the repository
 - no documents show in "All documents"
 - Probable cause: it requires a criteria to sort the documents?
mquezada commented 12 years ago

The solution could be complicated. It turns out when documents are displayed, the relationship chosen is "CriteriasDocument" for selecting all documents of a particular criteria. So, if there aren't any criteria, then no documents are selected because of the sql table used.

A solution could be "conditioning" the quantity of criterias. If there aren't any criterias, use the Document model (table) instead, by adapting all other methods to work according to the new model.