lib/ruote/storage/base.rb in ruote-2.1.4 vs lib/ruote/storage/base.rb in ruote-2.1.5
- old
+ new
@@ -94,10 +94,10 @@
# expressions
#++
def find_root_expression (wfid)
- get_many('expressions', /#{wfid}$/).sort { |a, b|
+ get_many('expressions', /!#{wfid}$/).sort { |a, b|
a['fei']['expid'] <=> b['fei']['expid']
}.select { |e|
e['parent_id'].nil?
}.first
end