Added client side validations. Fixed shared sync.
This commit is contained in:
parent
013637a4fc
commit
3f133bb8c3
8 changed files with 413 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue