Skip to content

Tasks are not creating #1

@pmarcis

Description

@pmarcis

Hi,

You have in your code:

$res = safe_query("INSERT INTO task (name,owner) VALUES ('_NEW_','".$mysession['userid']."');");

The task table, however, requires NOT NULL values for descr, instructions, ranges. Also, the task name here is a default one - _NEW_.

It seems that tasks cannot be created.

I get an exception from MySQL:

Query failed:
errorno=1364
error=Field 'descr' doesn't have a default value
query=INSERT INTO task (name,owner) VALUES ('_NEW_','0');

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions