Added client side validations. Fixed shared sync.

This commit is contained in:
benni 2011-05-19 22:35:13 +02:00
parent 013637a4fc
commit 3f133bb8c3
8 changed files with 413 additions and 7 deletions

View file

@ -27,7 +27,7 @@ class Supplier < ActiveRecord::Base
def sync_all
updated_articles = Array.new
outlisted_articles = Array.new
for article in articles.without_deleted
for article in articles
# try to find the associated shared_article
shared_article = article.shared_article