fixed: ticket sets a default function only for directories
fixed: reading a new url and subject in Functions::ReadItem() added: tickets are sorted now (by date) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@659 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -77,33 +77,26 @@ return true;
|
||||
|
||||
void Emacs::PostFunEmacsModifyMountPoint(bool adding)
|
||||
{
|
||||
if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
|
||||
{
|
||||
if( adding )
|
||||
db->EditThreadAddItem(request->dir_tab.back()->id, request->item.id);
|
||||
if( system->mounts.pmount->type == system->mounts.MountTypeThread() && adding )
|
||||
db->EditThreadAddItem(request->dir_tab.back()->id, request->item.id);
|
||||
|
||||
system->RedirectToLastDir();
|
||||
}
|
||||
/* !! tticket
|
||||
else
|
||||
if( system->mounts.pmount->type == system->mounts.MountTypeTicket() )
|
||||
{
|
||||
system->RedirectToLastDir();
|
||||
}
|
||||
*/
|
||||
else
|
||||
{
|
||||
// system->mounts.MountTypeCms()
|
||||
|
||||
if( system->mounts.pmount->type == system->mounts.MountTypeCms() )
|
||||
system->RedirectTo(request->item);
|
||||
}
|
||||
else
|
||||
system->RedirectToLastDir();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Emacs::MakePost()
|
||||
{
|
||||
bool adding = !request->is_item;
|
||||
bool edit_with_url = functions->ReadItem(request->item, Item::file);
|
||||
bool adding = !request->is_item;
|
||||
|
||||
if( !adding )
|
||||
old_url = request->item.url;
|
||||
|
||||
functions->ReadItem(request->item, Item::file);
|
||||
|
||||
if( adding )
|
||||
functions->SetUser(request->item); // set user before checking the rebus
|
||||
@@ -120,9 +113,7 @@ void Emacs::MakePost()
|
||||
}
|
||||
else
|
||||
{
|
||||
// !! moze dodac metode EditFile w klasie functions?
|
||||
// i ona wywola system->EditFile i poniszego updatera
|
||||
request->status = system->EditFile(request->item, edit_with_url);
|
||||
request->status = system->EditFile(request->item, request->item.url != old_url);
|
||||
|
||||
if( request->status == WINIX_ERR_OK )
|
||||
TemplatesFunctions::pattern_cacher.UpdatePattern(request->item);
|
||||
|
Reference in New Issue
Block a user