Skip to content

Commit

Permalink
fix: the prefill refresh didn't had the referer path so the select wa…
Browse files Browse the repository at this point in the history
…s always done from data root
  • Loading branch information
gregorybesson committed Nov 26, 2016
1 parent 3f5cc06 commit 6c7e2fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/routes/post-sql-request.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import path from 'path'
import url from 'url'
import {
cmsData
,abeExtend
Expand All @@ -9,7 +11,9 @@ var route = function(req, res, next){

var sourceString = req.body.sourceString
var prefillQuantity = req.body.prefillQuantity
var folder = req.body.folder
var folder = url.parse(req.header('referer')).path
folder = folder.replace('/abe/editor', '')
folder = path.dirname(folder)
var key = req.body.key
var jsonPage = (req.body.json) ? JSON.parse(JSON.stringify(req.body.json)) : {}

Expand Down

0 comments on commit 6c7e2fa

Please sign in to comment.